Java List spliterator() MethodThe spliterator() method of List Interface creates a Spliterator over the elements in the given list. SyntaxParametersNA Specified by
Returns:The spliterator() method returns a Spliterator over the elements in this list. Example 1Test it NowOutput: Values : 1 2 3 4 5 6 7 8 9 10 Example 2Test it NowOutput: Name : Reema School : Gita Convent School Course : Java Name : Geetu School : Gita Convent School Course : Android Name : Saloni School : Eicher Public School Course : Java Example 3Test it NowOutput: Values : 12345678910
Next TopicJava List
|