nextIndex
Returns index of the next element if it's present or throws NoFollowingElementInIteratorException if there is no next element.
Return
The index of the next element.
Returns index of the next element if it's present or throws NoFollowingElementInIteratorException if there is no next element.
The index of the next element.