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

Method main

arrays/ComparatorTest.java:18–24  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

16
17public class ComparatorTest {
18 public static void main(String[] args) {
19 CompType[] a = new CompType[12];
20 Arrays.setAll(a, n -> CompType.get());
21 show("Before sorting", a);
22 Arrays.sort(a, new CompTypeComparator());
23 show("After sorting", a);
24 }
25}
26/* Output:
27Before 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