Checks to see if the iterator has a next value.returntrue if next() will succeed
Returns the next value in the iterator.returnnext valuethrowsjava.util.NoSuchElementException if no next element exists