List of usage examples for java.util.stream IntStream peek
IntStream peek(IntConsumer action);
Source Link
From source file:Main.java
public static void main(String[] args) { IntStream i = IntStream.rangeClosed(1, 7); i.peek(System.out::println); }