Example usage for java.util.stream IntStream skip

List of usage examples for java.util.stream IntStream skip

Introduction

In this page you can find the example usage for java.util.stream IntStream skip.

Prototype

IntStream skip(long n);

Source Link

Document

Returns a stream consisting of the remaining elements of this stream after discarding the first n elements of the stream.

Usage

From source file:Main.java

public static void main(String[] args) {
    IntStream i = IntStream.of(6, 5, 7, 1, 2, 3, 4);
    i.skip(3).forEach(System.out::println);
}