code: public static int skip(IntIterator it, int n)
    {
      if (n < 0) {
        throw new IAE("n: " + n);
      }
      int skipped = 0;
      while (skipped < n && it.hasNext()) {
        it.nextInt();
        skipped++;
      }
      return skipped;
    }
docs: Implements {@link IntIterator#skip(int)}.