public void skip ( long n ) throws IllegalArgumentException , NoSuchElementException { if ( n < 0 ) { throw new IllegalArgumentException ( "skip(" + n + ")" ) ; } for ( long i = 0 ; i < n ; i ++ ) { next ( ) ; } }
Skips the given number of elements .