/** This method tells both elevators that one time unit has passed. */ private static void recordTick() { // tell each elevator that one unit of time has passed System.out.println("Tick."); elevator1.tick(); elevator2.tick(); } // end recordTick