L
Lucia
Hello,
I've read about the listiterator. It allows me to traverse the list in
either direction and modify the list during iteration.
But I've tried to add list elements during the iteration and got the
error message.
-- java.util.ConcurrentModificationException
at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:444)
at java.util.AbstractList$Itr.next(AbstractList.java:421)
Is it possible to add the new elements at the end of the list??
Thanks
Lucia
I've read about the listiterator. It allows me to traverse the list in
either direction and modify the list during iteration.
But I've tried to add list elements during the iteration and got the
error message.
-- java.util.ConcurrentModificationException
at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:444)
at java.util.AbstractList$Itr.next(AbstractList.java:421)
Is it possible to add the new elements at the end of the list??
Thanks
Lucia