Java DoubleStream create from double array
import java.util.Arrays; import java.util.stream.DoubleStream; public class Main { public static void main(String[] argv) throws Exception { DoubleStream numbers = Arrays.stream(new double[]{1D, 2D, 3D, 4D, 5D, 6D}); numbers.forEach(System.out::println); }/*from www . j a v a 2 s.c o m*/ }