I have ArrayList, from which I want to remove an element which has particular value...
for eg.
ArrayList a=new ArrayList
for java8 we can simply use removeIf function like this
listValues.removeIf(value -> value.type == "Deleted");