This API:
/// Returns a list iterator of the elements in this list (in proper sequence)
public ListIterator<E> listIterator(int index)
What is the meaning of proper sequence?
List<Integer> list = new ArrayList<Integer>();
list.add(1);
list.add(2);
list.add(3);
// Is the sequence returned by i1 and i2 is the same?
ListIterator<Integer> i1 = list.listIterator();
ListIterator<Integer> i2 = list.listIterator();
i1.next();
int result = i1.next(); // Is result 2? Or random?
When iterate in ListIterator object return in order of index proper mean that, and i1, i2 is independent:
The output is: