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