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

Method main

enums/CarWash.java:58–69  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

56 return cycles.toString();
57 }
58 public static void main(String[] args) {
59 CarWash wash = new CarWash();
60 System.out.println(wash);
61 wash.washCar();
62 // Order of addition is unimportant:
63 wash.add(Cycle.BLOWDRY);
64 wash.add(Cycle.BLOWDRY); // Duplicates ignored
65 wash.add(Cycle.RINSE);
66 wash.add(Cycle.HOTWAX);
67 System.out.println(wash);
68 wash.washCar();
69 }
70}
71/* Output:
72[BASIC, RINSE]

Callers

nothing calls this directly

Calls 2

washCarMethod · 0.95
addMethod · 0.95

Tested by

no test coverage detected