Description

An iterator over a collection. Iterator is the abstract base class of all iterators.

The base class of Iterator is Object.


Methods

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.


has_next

Boolean has_next()

Returns true if the iteration has more elements.


next

Object next()

Returns the next element in the iteration.


remove

Object remove()

Removes from the underlying collection the last element returned by the iterator.

Returns the removed object.