nl: returns the next object in the collection . if at the end of the collection , return the first element . concode_field_sep Iterator iterator concode_elem_sep Collection collection concode_field_sep int size concode_elem_sep void reset concode_elem_sep boolean hasNext concode_elem_sep void remove
code: Object function ( ) { if ( collection . size ( ) == 0 ) { throw new NoSuchElementException ( "srini_string" ) ; } if ( iterator . hasNext ( ) == false ) { reset ( ) ; } return iterator . next ( ) ; }