VOOZH about

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

⇱ ConcurrentSkipListSet spliterator() method in Java - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

ConcurrentSkipListSet spliterator() method in Java

Last Updated : 10 Dec, 2018
The java.util.concurrent.ConcurrentSkipListSet.spliterator() method is an in-built function in Java which returns a weakly uniform Spliterator across the elements of this set. Syntax:
ConcurrentSkipListSet.spliterator()
Parameters: The function does not accept any parameter. Return Value: The function returns a Spliterator across the elements of this set. Below programs illustrate the ConcurrentSkipListSet.spliterator() method: Program 1:
Output:
Lower case = Gfg
Upper case = GFG

Lower case = best!!
Upper case = BEST!!

Lower case = is
Upper case = IS
Program 2:
Output:
The elements in the set are : A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Reference: https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ConcurrentSkipListSet.html#spliterator--
Comment