int function ( ) { if ( list . isEmpty ( ) ) { throw new NoSuchElementException ( "srini_string" ) ; } if ( iterator . hasNext ( ) == false ) { return 0 ; } return iterator . nextIndex ( ) ; }
returns the index of the element that would be returned by a subsequent call to #next . as would be expected , if the iterator is at the physical end of the underlying list , 0 is returned , signifying the beginning of the list . concode_field_sep ListIterator<E> iterator concode_elem_sep List<E> list concode_field_sep E next concode_elem_sep void add concode_elem_sep void _reset concode_elem_sep void set concode_elem_sep E previous concode_elem_sep int size concode_elem_sep boolean hasPrevious concode_elem_sep void reset concode_elem_sep boolean hasNext concode_elem_sep int previousIndex concode_elem_sep void remove