I need to delete some objects from an ArrayList if they meet a condition and I\'m wondering which way could be more efficient.
ArrayList
Here\'s the situation: I
I have found an alternative faster solution:
int j = 0; for (Iterator i = list.listIterator(); i.hasNext(); ) { j++; if (campo.getNome().equals(key)) { i.remove(); i = list.listIterator(j); } }