574: Mainline
To be sure that there is a next element, you test the iterator using
hasNext
:
i.hasNext()