private void removeAuthors(String[] alreadySelectedAuthors, List<InfoAuthor> infoAuthors) {  List<Integer> authorsIds = new ArrayList<Integer>(); for(int i = 0; i < alreadySelectedAuthors.length ; i++) { authorsIds.add(Integer.getInteger(alreadySelectedAuthors[i])); }  Iterator<InfoAuthor> iterator = infoAuthors.iterator(); while (iterator.hasNext()) { InfoAuthor currentInfoAuthor = (InfoAuthor) iterator.next(); for (Integer id : authorsIds) { if (id == currentInfoAuthor.getIdInternal()) { iterator.remove(); } } }
private void removeAuthors(Integer[] alreadySelectedAuthors, List<InfoAuthor> infoAuthors) {  Iterator<InfoAuthor> iterator = infoAuthors.iterator(); while (iterator.hasNext()) { InfoAuthor currentInfoAuthor = (InfoAuthor) iterator.next(); for(int i = 0; i < alreadySelectedAuthors.length ; i++) { if (currentInfoAuthor.getIdInternal().equals(alreadySelectedAuthors[i])) { iterator.remove(); } } }
    private void removeAuthors(String[] alreadySelectedAuthors, List<InfoAuthor> infoAuthors) {    	//Converter String[] num arraylist    	List<Integer> authorsIds = new ArrayList<Integer>();    	for(int i = 0; i < alreadySelectedAuthors.length ; i++) {    		authorsIds.add(Integer.getInteger(alreadySelectedAuthors[i]));    	}    		    	Iterator<InfoAuthor> iterator = infoAuthors.iterator();    	while (iterator.hasNext()) {    		InfoAuthor currentInfoAuthor = (InfoAuthor) iterator.next();    		for (Integer id : authorsIds) {    			if (id == currentInfoAuthor.getIdInternal()) {    				iterator.remove();    			}    		}    	}    }