src/org/kocakosm/pitaya/collection/Iterators.java
public static int skip(Iterator<?> iterator, int n)
	{
		Parameters.checkCondition(n >= 0);
		int skipped = 0;
		while (skipped < n && iterator.hasNext()) {
			iterator.next();
			skipped++;
		}
		return skipped;
	}
public static int skip(Iterator<?> iterator, int n)
	{
		Parameters.checkCondition(n >= 0);
		int skipped = 0;
		while (skipped < n && iterator.hasNext()) {
			iterator.next();
			skipped++;
		}
		return skipped;
	}
public static int skip ( Iterator < ? > iterator , int n ) { Parameters . checkCondition ( n >= 0 ) ; int skipped = 0 ; while ( skipped < n && iterator . hasNext ( ) ) { iterator . next ( ) ; skipped ++ ; } return skipped ; }
Skips {@code n} elements from the given {@code Iterator}.

@param iterator the {@code Iterator}.
@param n the number of elements to skip.

@return the actual number of elements that has been skipped.

@throws NullPointerException if {@code iterator} is {@code null}.
@throws IllegalArgumentException if ({@code n} is negative.
Skips { @code n } elements from the given { @code Iterator } .