MCPcopy Create free account
hub / github.com/careercup/ctci / print

Method print

java/Chapter 8/Question8_4/ParkingSpot.java:55–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53 }
54
55 public void print() {
56 if (vehicle == null) {
57 if (spotSize == VehicleSize.Compact) {
58 System.out.print("c");
59 } else if (spotSize == VehicleSize.Large) {
60 System.out.print("l");
61 } else if (spotSize == VehicleSize.Motorcycle) {
62 System.out.print("m");
63 }
64 } else {
65 vehicle.print();
66 }
67 }
68}

Callers 1

printMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected