Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 771 Bytes

File metadata and controls

27 lines (17 loc) · 771 Bytes

java-removeif-removeall-example

This is a sample basic project to demonstrate removeIf() & removeAll() methods of Java Collection Interface.

removeIf()

The removeIf() method removes the elements of the specific collection that satisfies the given predicate filter.

Syntax:

public boolean removeIf (Predicate<?  super E>  filter);

removeAll()

The removeAll() method only removes the elements of the specified collection that are contained in the provided collection.

Syntax:

public boolean removeAll(Collection<?> c);

How to Contribute

For the contributor covenant to this project, please check the Code of Conduct file.

Contributor Covenant