Iterator in JAVA - Java tutorial - w3Schools - Chapter-45 English

Опубликовано: 02 Май 2026
на канале: w3Schools Tutorials
184
1

An Iterator is an object that can be used to loop through collections, like ArrayList and HashSet. It is called an "iterator" because "iterating" is the technical term for looping.

To use an Iterator, you must import it from the java.util package.

Getting an Iterator
Looping Through a Collection
Removing Items from a Collection