public abstract boolean hasNext ()

Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)

Returns:  true if the iteration has more elements