I am using java.util.ArrayList, I want to remove all the occurrences of a particular element.
java.util.ArrayList
List l = new ArrayList
while(l.remove("first")) { }
This removes all elements "first" from the list.