Files

8 lines
599 B
Markdown
Raw Permalink Normal View History

2025-03-05 14:06:58 +00:00
# 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)
2025-11-24 17:20:43 +01:00
- [@article@Java Iterable Tutorial](https://jenkov.com/tutorials/java-collections/iterable.html)