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

Method main

arrays/CompType.java:33–39  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

31 return new CompType(r.nextInt(100), r.nextInt(100));
32 }
33 public static void main(String[] args) {
34 CompType[] a = new CompType[12];
35 Arrays.setAll(a, n -> get());
36 show("Before sorting", a);
37 Arrays.sort(a);
38 show("After sorting", a);
39 }
40}
41/* Output:
42Before sorting: [[i = 35, j = 37], [i = 41, j = 20], [i

Callers

nothing calls this directly

Calls 4

getMethod · 0.95
showMethod · 0.65
setAllMethod · 0.45
sortMethod · 0.45

Tested by

no test coverage detected