How to use ArrayList and ListIterator in Java - post  modification 0.6