Remove elements from a collection
boolean remove(Object o)
- Removes a single instance of the specified element from this collection, if it is present (optional operation).
boolean removeAll(Collection<?> c)
- Removes all of this collection's elements that are also contained in the specified collection (optional operation).
boolean retainAll(Collection<?> c)
- Retains only the elements in this collection that are contained in the specified collection (optional operation).