I am using java.util.ArrayList, I want to remove all the occurrences of a particular element.
java.util.ArrayList
List l = new ArrayList
l.removeAll(Collections.singleton("first"));