On 3/3/2013 9:46 PM, Zhong Yu wrote: > The problem is at the beginning > Arrays.asList(1.0).stream() > which is a boxed Stream<Double>, not the primitive DoubleStream. > > Not sure what's the best way to create a DoubleStream though: > double[] data = {1.0}; > DoubleStream stream = ?how?(data); Arrays.stream(data)