I am using java.util.ArrayList, I want to remove all the occurrences of a particular element.
java.util.ArrayList
List l = new ArrayList
You can use the removeAll() method.
list.removeAll(Arrays.asList("someDuplicateString"));