Methods
boolean hasNext()
- Returns true if there are more elements. Otherwise, returns false.
Object next()
- Returns the next element. Throws
NoSuchElementException
if there is not a next element.
- Returns the next element. Throws
void remove()
- Removes the current element. Throws
IllegalStateException
if an attempt is made to callremove()
that is not preceded by a call tonext()
.
- Removes the current element. Throws