Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

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