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

Method main

arrays/Reverse.java:11–17  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

9
10public class Reverse {
11 public static void main(String[] args) {
12 CompType[] a = new CompType[12];
13 Arrays.setAll(a, n -> CompType.get());
14 show("Before sorting", a);
15 Arrays.sort(a, Collections.reverseOrder());
16 show("After sorting", a);
17 }
18}
19/* Output:
20Before 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