hasNext abstract method
Returns true if the iteration has more elements.
(In other words, returns true if [next} would
return an element rather than throwing an exception.)
@return true if the iteration has more elements
Implementation
bool hasNext();