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;
  }
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 ; }
Implements {@link IntIterator#skip(int)}.