112
Java ConcurrentLinkedQueue spliterator() Method
The spliterator() method of ConcurrentLinkedQueue class returns a weakly uniform Spliterator across the elements of this queue.
Syntax:
Parameters:
NA
Specified By:
The spliterator() method of ConcurrentLinkedQueue class is specified by:
- Spliterator() method in interface Collection<E>.
- Spliterator() method in interface Iterable<E>.
Return Value:
The spliterator() method returns a Spliterator across the elements of this queue.
Example 1
Output:
Alphabets : 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
Example 2
Output:
1 Lower case = aman 1 Upper case = AMAN 2 Lower case = bhavika 2 Upper case = BHAVIKA 3 Lower case = chavi 3 Upper case = CHAVI 4 Lower case = chandan 4 Upper case = CHANDAN
Example 3
Output:
1 Roll No = 15cs1029 Name = Reema panda Age = 21 2 Roll No = 15cs1012 Name = Geetanjali Sharma Age = 21 3 Roll No = 15cs1011 Name = Himanshu Bhardwaj Age = 21
Example 4
Output:
7118 800 1178 1190 Max number = 7118 Min number = 800
Next TopicJava ConcurrentLinkedQueue