I\'m trying to remove some elements from a List, but even the simplest examples, as the ones in this answer or this, won\'t work.
List
public static
Create a new list with the elements you want to remove, and then call removeAll methode.
removeAll
List toRemove = new ArrayList(); for(Object a: list){ if(true){ toRemove.add(a); } } list.removeAll(toRemove);