public abstract class Iterator
extends java.lang.Object
public abstract boolean hasNext()
true
if the iteration has more values. (In other words, returns true
if next()
would return a value rather than throwing an exception.)public abstract java.lang.Object next()
NoSuchElementException
- - if the iteration has no more values