What is the function of the remove(Object o), removeAll(Collection<?> c) and removeIf(Predicate"? super E" filter) methods from the Collection interface?
Answer: remove() returns true if the object was present and then removed. removeAll() returns true if at least one element was found and removed. removeIf() removes any elements from the collection that satisfy an included predicate.
If the answers is incorrect or not given, you can answer the above question in the comment box. If the answers is incorrect or not given, you can answer the above question in the comment box.