An iterator over a collection. Iterator is the abstract base class of all iterators.
The base class of Iterator is Object.
| Boolean |
has_next () Returns true if the iteration has more elements. |
| Object |
next () Returns the next element in the iteration. |
| Object |
remove () Removes from the underlying collection the last element returned by the iterator. |
Boolean has_next()
Returns true if the iteration has more elements.
Object next()
Returns the next element in the iteration.
Object remove()
Removes from the underlying collection the last element returned by the iterator.
Returns the removed object.