News

First, hasNext() should not call next(). The standard contract for hasNext() is that it can be called any number of times without changing the iterator, while the standard contract for next() is ...