Java LinkedTransferQueue spliterator() Method

The spliterator() method of LinkedTransferQueue class returns a weakly uniform Spliterator across the elements of this queue.

Syntax:

Parameters:

NA

Specified By:

The spliterator() method of LinkedTransferQueue class is specified by:

  • Spliterator() method in interface Collection.
  • Spliterator() method in interface Iterable.

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 = Kristen
1 Upper case = KRISTEN

2 Lower case = Harry
2 Upper case = HARRY

3 Lower case = Jack
3 Upper case = JACK

Example 3

Test it Now

Output:

1 Roll No = 15cs1029
 Name = Johnson
 Age = 24

2 Roll No = 15cs1012
 Name = Harry Potter
 Age = 22

3 Roll No = 15cs1011
 Name = John
 Age = 21





Latest Courses