You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Garage.java utilizes a stack to simulate cars entering and exiting a garage. Since the garage can only accommodate 7 cars at a time, the rest of the cars that want to enter the garage need to wait in a First-In-First-Out queue for their turns. The arrival and departure of the each vehicle are kept track of and the ones waiting to enter the garag…
Notifications You must be signed in to change notification settings
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Go to fileShort summary of the project: Garage.java utilizes a stack to simulate cars entering and exiting a garage. Since the garage can only accommodate 7 cars at a time, the rest of the cars that want to enter the garage need to wait in a First-In-First-Out queue for their turns. The arrival and departure of the each vehicle are kept track of and the ones waiting to enter the garage are moved in when space becomes available.
Garage.java utilizes a stack to simulate cars entering and exiting a garage. Since the garage can only accommodate 7 cars at a time, the rest of the cars that want to enter the garage need to wait in a First-In-First-Out queue for their turns. The arrival and departure of the each vehicle are kept track of and the ones waiting to enter the garag…