Yesterday, when I was answering to question getting ConcurrentModificationException error while using iterator and remove I added a notice that
It's not a good idea to use iterators when you have ArrayLists.
You do not need to deeply understand that question to answer on that one.
There, I got two comments that I'm wrong.
My arguments:
The code is much less readable with iterators.
There is a possibility to raise ConcurrentModificationException that is hard to debug.
Can you please explain?
Question: Do we ever need to explicitly use Iterators on ArrayList?