Java Collection spliterator() MethodThe spliterator() method of Collection Interface returns a Spliterator across the elements of this collection. SyntaxParametersNA Specified ByThe spliterator() method of Collection class is specified by:
Return ValueThe spliterator() method returns a Spliterator across the elements of this collection. Example 1Test it NowOutput: Values : 1 2 3 4 5 6 7 8 9 10 Example 2Test it NowOutput: 1 ID No = 15 Name = Reema panda Age = 21 2 ID No = 16 Name = Geetanjali Sharma Age = 21 3 ID No = 17 Name = Ajeet Kumar Maurya XI Age = 36 Example 3Test it NowOutput: Values : 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 Next TopicJava Collection |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India