public
Spliterator<E> spliterator()
Creates
a late-binding and fail-fast Spliterator over the elements in this
list.
import java.util.*; class ArrayListSpliterator{ public static void main(String args[]){ ArrayList<Integer> myList; Spliterator<Integer> mySpliterator; myList = new ArrayList<> (); myList.add(10); myList.add(20); myList.add(30); myList.add(40); mySpliterator = myList.spliterator(); System.out.print("characteristics Of Spliterator are "); System.out.println(mySpliterator.characteristics()); } }
Output
characteristics Of Spliterator are 16464
No comments:
Post a Comment