ConcurrentSkipListMap isEmpty() method in Java with Examples
The isEmpty() method of java.util.concurrent.ConcurrentSkipListMap is an in-built function in Java which returns boolean value that is it returns true if this map contains no key-value mappings otherwise false.
public boolean isEmpty()
Parameter: The function does not accepts any parameters.
Return Value: The function returns true if this map contains no key-value mappings or else false.
Below programs illustrate the above method:
Attention reader! Don’t stop learning now. Get hold of all the important Java Foundation and Collections concepts with the Fundamentals of Java and Java Collections Course at a student-friendly price and become industry ready. To complete your preparation from learning a language to DS Algo and many more, please refer Complete Interview Preparation Course.