The java.util.concurrent.ConcurrentSkipListSet.isEmpty() method is an in-built function in Java which is used to check if this set is empty or not.
Syntax:
ConcurrentSkipListSet.isEmpty()
Parameters: The function does not accepts any parameter.
Return Value: The function returns a boolean value. It returns true if the ConcurrentSkipListSet is empty and returns false otherwise.
Below programs illustrate the ConcurrentSkipListSet.IsEmpty() method:
Program 1: In this program the ConcurrentSkipListSet is non-empty.
Output:
The set is non-empty.
Program 2: In this program the ConcurrentSkipListSet is empty.