nextIndex abstract method
Returns the index of the element that would be returned by a subsequent call to next. (Returns list size if the list iterator is at the end of the list.)
@return the index of the element that would be returned by a subsequent call to next, or list size if the list iterator is at the end of the list
Implementation
int nextIndex();