VOOZH about

URL: https://www.geeksforgeeks.org/java/concurrentskiplistset-isempty-method-in-java/

⇱ ConcurrentSkipListSet isEmpty() method in Java - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

ConcurrentSkipListSet isEmpty() method in Java

Last Updated : 17 Sep, 2018
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.
Comment