Files
developer-roadmap/roadmaps/java/content/iterator@-17LFO72I8RKjJRMXct9k.md
Arik Chakma 274082fd77 feat: clean roadmap content and sync scripts (#10181)
* refactor: clean to roadmap content

* refactor: move shared helpers into scripts/lib
2026-07-28 05:45:17 +06:00

8 lines
599 B
Markdown

# Iterator
An Iterator is an object that enables you to traverse through a collection (like a List or Set) one element at a time. It provides a standard way to access elements sequentially without needing to know the underlying structure of the collection. You can use methods like `hasNext()` to check if there's a next element and `next()` to retrieve it.
Visit the following resources to learn more:
- [@article@Java Iterator Tutorial](https://jenkov.com/tutorials/java-collections/iterator.html)
- [@article@Java Iterable Tutorial](https://jenkov.com/tutorials/java-collections/iterable.html)