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: