Iterator
An Iterator is a structure that permits iteration over elements.
Any object with matching hasNext() and next() fields is considered an Iterator
and can then be used e.g. in for-loops.
Created Iterator has only two methods:
hasNext() |
Returns false if the iteration is complete, true otherwise. |
|
next() |
Returns the current item of the Iterator and advances to the next one. |
|
Created with the Personal Edition of HelpNDoc: Easily create CHM Help documents