RATHIPRIYA-T / lift-program-in-java

This Java program simulates an elevator's movement within a building. It takes the total number of floors, the current floor, and a sequence of actions (U for up, D for down) from the user, then updates the current floor accordingly while ensuring movements are within valid bounds.
24Updated 4 months ago

Related projects: