No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
This is a function in class *DepartmentBean* which check if element already exist in container: bool f; public void addIfAbsent(UserBean userBean) { if (users.stream().anyMatch(x -> x.getUsername().equals(userBean.getUsername()))) { f = false; } else { f = true; users.add(userBean); } } } In my servlet I am trying to send Message of … |
|
I have two tables. MODELS and AUTOMOBILES. And procedure which export all models with name that user inputs and their price(stored in AUTOMOBILES). create or REPLACE procedure modelzz( VAR_MODEL IN MODELS.NAME_MODEL%TYPE, VAR_PRICE OUT AUTOMOBILES.A_PRICE%TYPE ) as begin SELECT a.A_PRICE INTO VAR_PRICE FROM AUTOMOBILES a join MODELS m on a.MODELS_ID_MODEL=m.ID_MODEL where … |
|
It sorts names in ArrayList, but how exactly does it happen? public void sortStudentsAlphabetic() { int i, j; Student temp; Student[] array = new Student[studentsList.size()]; for (int k = 0; k < array.length; k++) { array[k] = studentsList.get(k); } for (i = 0; i < array.length - 1; i++) { … |