MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / main

Method main

arrays/ParallelPrefix2.java:10–15  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

8
9public class ParallelPrefix2 {
10 public static void main(String[] args) {
11 String[] strings = new Rand.String(1).array(8);
12 show(strings);
13 Arrays.parallelPrefix(strings, (a, b) -> a + b);
14 show(strings);
15 }
16}
17/* Output:
18[b, t, p, e, n, p, c, c]

Callers

nothing calls this directly

Calls 2

showMethod · 0.65
arrayMethod · 0.45

Tested by

no test coverage detected