我无法设法将其检索到数组或集合中,我该怎么做?
Stream<double[]> pyt = IntStream.rangeClosed(1, 100)
.boxed().flatMap(a->IntStream.rangeClosed(a, 100)
.mapToObj(b->new double[]{a,b,Math.sqrt(a*a+b*b)})
.filter(t->t[2]%1==0));
这不起作用
double[] arr = (double[])pyt.toArray();