|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use ArrayListInt.ListIterator | |
---|---|
org.palo.api.impl.utils |
Uses of ArrayListInt.ListIterator in org.palo.api.impl.utils |
---|
Methods in org.palo.api.impl.utils that return ArrayListInt.ListIterator | |
---|---|
ArrayListInt.ListIterator |
ArrayListInt.listIterator()
Returns a simple forward iterator to the caller which can be used to retrieve the contents of the arraylist like this: ArrayListInt.ListIterator it = alist.listIterator(); while (it.hasNext()) { int l = li.next (); System.out.println (" : " + l); } Additionally the list iterator is capable of backwards iteration using the methods @see previous and @see hasPrevious |
ArrayListInt.ListIterator |
ArrayListInt.listIterator(int index)
Returns a simple forward iterator with user-specified starting position which can be used to retrieve the contents of the arraylist in reverse order like this: ArrayListInt.ListIterator it = alist.listIterator(alist.size()); while (it.hasPrevious()) { int l = li.previous (); System.out.println (" : " + l); } Additionally the list iterator is capable of backwards iteration using the methods @see previous and @see hasPrevious |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |