Javatpoint Logo
Javatpoint Logo

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

Test it Now

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

Test it Now

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

Test it Now

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

Test it Now

Output:

7118
800
1178
1190
Max number = 7118
Min number = 800






Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA