MCPcopy Index your code
hub / github.com/careercup/ctci / removeVehicle

Method removeVehicle

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

Source from the content-addressed store, hash-verified

48
49 /* Remove vehicle from spot, and notify level that a new spot is available */
50 public void removeVehicle() {
51 level.spotFreed();
52 vehicle = null;
53 }
54
55 public void print() {
56 if (vehicle == null) {

Callers 1

clearSpotsMethod · 0.80

Calls 1

spotFreedMethod · 0.80

Tested by

no test coverage detected