I have ArrayList, from which I want to remove an element which has particular value...
for eg.
ArrayList a=new ArrayList
One-liner (java8):
list.removeIf(s -> s.equals("acbd")); // removes all instances, not just the 1st one
(does all the iterating implicitly)