Java implementation of the elevator simulation program