Skip to main content

One doc tagged with "iterator"

View all tags

Iterators and the for-each Loop

How the Iterator protocol works, what ConcurrentModificationException means and how to avoid it, and how the enhanced for-each loop is compiled.