How does the `Iterator` interface in Java work with collections?
The `Iterator` interface allows you to loop through collections but does not allow you to modify the collection during iteration.
Youâ€™re close! The `Iterator` does allow you to remove elements using its `remove()` method, which is important to note.
Can you clarify how you can safely modify a collection during iteration using an `Iterator`?