Java Vector spliterator() MethodThe spliterator() method of Java Vector class is used to create a late-binding and fail-fast spliterator over the elements in this list. SyntaxFollowing is the declaration of spliterator() method: ParameterThis method does not accept any parameter. ReturnThe spliterator() method returns a spliterator over the elements in the list. ExceptionsNA Compatibility VersionJava 1.8 and above Example 1Test it NowOutput: Estimated size: 4 Contents of vector: 10 30 20 40 Example 2Test it NowOutput: Estimated size: 5 Contents of vector: One Two Three Four Five Next TopicVector subList() |
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