code: public void skip(long n) throws IllegalArgumentException, NoSuchElementException
     {
        if (n < 0)
        {
           throw new IllegalArgumentException("skip(" + n + ")");
        }
  
        for (long i = 0; i < n; i++)
        {
           next();
        }
     }
docs: Skips the given number of elements.
  
  @param n number of elements to skip
  @throws IllegalArgumentException if n is negative
  @throws NoSuchElementException if skipped past the last element