(String[] args)
| 7 | |
| 8 | public class Summing4 { |
| 9 | public static void main(String[] args) { |
| 10 | System.out.println(Summing3.CHECK); |
| 11 | Long[] aL = new Long[Summing3.SZ+1]; |
| 12 | Arrays.parallelSetAll(aL, i -> (long)i); |
| 13 | Summing.timeTest("Long Parallel", |
| 14 | Summing3.CHECK, () -> |
| 15 | Arrays.stream(aL) |
| 16 | .parallel() |
| 17 | .reduce(0L,Long::sum)); |
| 18 | } |
| 19 | } |
| 20 | /* Output: |
| 21 | 50000005000000 |
nothing calls this directly
no test coverage detected