List of usage examples for java.util.stream IntStream mapToLong
LongStream mapToLong(IntToLongFunction mapper);
From source file:Main.java
public static void main(String[] args) { IntStream i = IntStream.of(6, 5, 7, 1, 2, 3, 3); LongStream d = i.mapToLong(n -> { return (long) n; });/*from w w w.ja va 2 s .c om*/ d.forEach(System.out::println); }