List of usage examples for java.util.stream LongStream toArray
long[] toArray();
From source file:Main.java
public static void main(String[] args) { LongStream b = LongStream.of(1L, 1L, Long.MAX_VALUE, Long.MIN_VALUE); long[] l = b.toArray(); for (long v : l) { System.out.println(v);/* w ww .j a va2 s . c o m*/ } }