ArrayExamples { public static double[] parallelInitialize(int size) { double[] values = new double[size]; Arrays.parallelSetAll(values, i -> i); return values; }  static double[] simpleMovingAverage(double[] values, int n); static double[] parallelInitialize(int size); static double[] imperativeInitilize(int size);  }
@Test public void parallel() { assertArrayEquals(output, ArrayExamples.parallelInitialize(size), 0.0); }