The ListIterator in JAVA or in another lenguage, is an iterator for lists that allows the programmer to traverse the list in either direction, modify the list during iteration, and obtain the iterator’s current position in the list.
The List and Set collections provide iterators, which are objects that allow going over all the elements of a collection in sequence. The java.util.Iterator interface provides for one-way traversal and java.util.ListIterator is an iterator for lists that allows the programmer to traverse the list in either direction (i.e. forward and or backward) and modify the list during iteration.
Liked By
Write Answer
What is a list iterator in java?
Join MindStick Community
You have need login or register for voting of answers or question.
Dagmara Aburto
24-Feb-2018The ListIterator in JAVA or in another lenguage, is an iterator for lists that allows the programmer to traverse the list in either direction, modify the list during iteration, and obtain the iterator’s current position in the list.
Sumit Kesarwani
26-Mar-2014