SystemStartup.java did not run. Please help me edit the code or figure out why SystemStartup.java failed to
Question:
SystemStartup.java did not run. Please help me edit the code or figure out why SystemStartup.java failed to run correctly. SystemStartup.java https://codeshare.io/YLxo8m Bike.java https://codeshare.io/VZq8eb
BikeStatus.java
public enum BikeStatus { CHECKEDIN, CHECKEDOUT; }
Kiosk.java https://codeshare.io/WdZnKy
BikeList.java https://codeshare.io/vwM9my
BikeKiosks.java https://codeshare.io/eVvAxJ
BikeRentalUI.java https://codeshare.io/9OnlD1
Sample Output: Sample Run 1 Please enter a command 1: return a bike 2: rent a bike 3: show the most recently rented bike 4: get counts of bikes currently rented out and bikes that are parked 5: get list of rented bikes, sorted by timestamp 6: get sorted list of bikes parked at kiosk Q: quit >>>>>> 1 Enter the bike id 6 Enter the kiosk id 35 bike has been returned Please enter a command 1: return a bike 2: rent a bike 3: show the most recently rented bike 4: get counts of bikes currently rented out and bikes that are parked 5: get list of rented bikes, sorted by timestamp 6: get sorted list of bikes parked at kiosk Q: quit >>>>>> 1 Enter the bike id 4 Enter the kiosk id 42 bike has been returned Please enter a command 1: return a bike 2: rent a bike 3: show the most recently rented bike 4: get counts of bikes currently rented out and bikes that are parked 5: get list of rented bikes, sorted by timestamp 6: get sorted list of bikes parked at kiosk Q: quit >>>>>> 1 Enter the bike id 1 Enter the kiosk id 35 bike has been returned Please enter a command 1: return a bike 2: rent a bike 3: show the most recently rented bike 4: get counts of bikes currently rented out and bikes that are parked 5: get list of rented bikes, sorted by timestamp 6: get sorted list of bikes parked at kiosk Q: quit >>>>>> 1 Enter the bike id 2 Enter the kiosk id 42 bike has been returned Please enter a command 1: return a bike 2: rent a bike 3: show the most recently rented bike 4: get counts of bikes currently rented out and bikes that are parked 5: get list of rented bikes, sorted by timestamp 6: get sorted list of bikes parked at kiosk Q: quit >>>>>> 1 Enter the bike id 5 Enter the kiosk id 35 bike has been returned Please enter a command 1: return a bike 2: rent a bike 3: show the most recently rented bike 4: get counts of bikes currently rented out and bikes that are parked 5: get list of rented bikes, sorted by timestamp 6: get sorted list of bikes parked at kiosk Q: quit >>>>>> 1 Enter the bike id 3 Enter the kiosk id 35 bike has been returned Please enter a command 1: return a bike 2: rent a bike 3: show the most recently rented bike 4: get counts of bikes currently rented out and bikes that are parked 5: get list of rented bikes, sorted by timestamp 6: get sorted list of bikes parked at kiosk Q: quit >>>>>> 6 Enter the kiosk id 35 Bike 1 Model: ToughBike101 Current Status: CHECKEDIN Date/Time status changed: 17-09-2022 16:54:13 538685 Bike 3 Model: ToughBike120 Current Status: CHECKEDIN Date/Time status changed: 17-09-2022 16:54:41 968458 Bike 5 Model: PowerBikeEZ4 Current Status: CHECKEDIN Date/Time status changed: 17-09-2022 16:54:34 254268 Bike 6 Model: ToughBike101 Current Status: CHECKEDIN Date/Time status changed: 17-09-2022 16:53:57 512623 Please enter a command 1: return a bike 2: rent a bike 3: show the most recently rented bike 4: get counts of bikes currently rented out and bikes that are parked 5: get list of rented bikes, sorted by timestamp 6: get sorted list of bikes parked at kiosk Q: quit >>>>>> 2 Enter the bike id 1 Enter the kiosk id 35 bike has been rented Please enter a command 1: return a bike 2: rent a bike 3: show the most recently rented bike 4: get counts of bikes currently rented out and bikes that are parked 5: get list of rented bikes, sorted by timestamp 6: get sorted list of bikes parked at kiosk Q: quit >>>>>> 2 Enter the bike id 3 Enter the kiosk id 35 bike has been rented Please enter a command 1: return a bike 2: rent a bike 3: show the most recently rented bike 4: get counts of bikes currently rented out and bikes that are parked 5: get list of rented bikes, sorted by timestamp 6: get sorted list of bikes parked at kiosk Q: quit >>>>>> 5 Bike 1 Model: ToughBike101 Current Status: CHECKEDOUT Date/Time status changed: 17-09-2022 16:55:49 738900 Bike 3 Model: ToughBike120 Current Status: CHECKEDOUT Date/Time status changed: 17-09-2022 16:56:02 849087 Please enter a command 1: return a bike 2: rent a bike 3: show the most recently rented bike 4: get counts of bikes currently rented out and bikes that are parked 5: get list of rented bikes, sorted by timestamp 6: get sorted list of bikes parked at kiosk Q: quit >>>>>> 2 Enter the bike id 2 Enter the kiosk id 42 bike has been rented Please enter a command 1: return a bike 2: rent a bike 3: show the most recently rented bike 4: get counts of bikes currently rented out and bikes that are parked 5: get list of rented bikes, sorted by timestamp 6: get sorted list of bikes parked at kiosk Q: quit >>>>>> 5 Bike 1 Model: ToughBike101 Current Status: CHECKEDOUT Date/Time status changed: 17-09-2022 16:55:49 738900 Bike 3 Model: ToughBike120 Current Status: CHECKEDOUT Date/Time status changed: 17-09-2022 16:56:02 849087 Bike 2 Model: ToughBike101 Current Status: CHECKEDOUT Date/Time status changed: 17-09-2022 16:56:51 455875 Please enter a command 1: return a bike 2: rent a bike 3: show the most recently rented bike 4: get counts of bikes currently rented out and bikes that are parked 5: get list of rented bikes, sorted by timestamp 6: get sorted list of bikes parked at kiosk Q: quit >>>>>> 4 Number of rented bikes: 3 Number of bikes returned to kiosks: 3 Total number of bikes in system: 6 Please enter a command 1: return a bike 2: rent a bike 3: show the most recently rented bike 4: get counts of bikes currently rented out and bikes that are parked 5: get list of rented bikes, sorted by timestamp 6: get sorted list of bikes parked at kiosk Q: quit >>>>>> 3 Most recently rented bike is Bike 2 Model: ToughBike101 Current Status: CHECKEDOUT Date/Time status changed: 17-09-2022 16:56:51 455875 Please enter a command 1: return a bike 2: rent a bike 3: show the most recently rented bike 4: get counts of bikes currently rented out and bikes that are parked 5: get list of rented bikes, sorted by timestamp 6: get sorted list of bikes parked at kiosk Q: quit >>>>>> q Bye! System shutting down, goodbye Sample Run2 Please enter a command 1: return a bike 2: rent a bike 3: show the most recently rented bike 4: get counts of bikes currently rented out and bikes that are parked 5: get list of rented bikes, sorted by timestamp 6: get sorted list of bikes parked at kiosk Q: quit >>>>>> 1 Enter the bike id 6 Enter the kiosk id 42 bike has been returned Please enter a command 1: return a bike 2: rent a bike 3: show the most recently rented bike 4: get counts of bikes currently rented out and bikes that are parked 5: get list of rented bikes, sorted by timestamp 6: get sorted list of bikes parked at kiosk Q: quit >>>>>> 1 Enter the bike id 1 Enter the kiosk id 42 bike has been returned Please enter a command 1: return a bike 2: rent a bike 3: show the most recently rented bike 4: get counts of bikes currently rented out and bikes that are parked 5: get list of rented bikes, sorted by timestamp 6: get sorted list of bikes parked at kiosk Q: quit >>>>>> 6 Enter the kiosk id 42 Bike 1 Model: ToughBike101 Current Status: CHECKEDIN Date/Time status changed: 17-09-2022 17:04:47 227741 Bike 6 Model: ToughBike101 Current Status: CHECKEDIN Date/Time status changed: 17-09-2022 17:04:41 970077 Please enter a command 1: return a bike 2: rent a bike 3: show the most recently rented bike 4: get counts of bikes currently rented out and bikes that are parked 5: get list of rented bikes, sorted by timestamp 6: get sorted list of bikes parked at kiosk Q: quit >>>>>> 6 Enter the kiosk id 33 No bikes were returned to kiosk 33 Please enter a command 1: return a bike 2: rent a bike 3: show the most recently rented bike 4: get counts of bikes currently rented out and bikes that are parked 5: get list of rented bikes, sorted by timestamp 6: get sorted list of bikes parked at kiosk Q: quit >>>>>> 2 Enter the bike id 2 Enter the kiosk id 33 Something went wrong - bike could not be rented Please enter a command 1: return a bike 2: rent a bike 3: show the most recently rented bike 4: get counts of bikes currently rented out and bikes that are parked 5: get list of rented bikes, sorted by timestamp 6: get sorted list of bikes parked at kiosk Q: quit >>>>>> 2 Enter the bike id 6 Enter the kiosk id 42 bike has been rented Please enter a command 1: return a bike 2: rent a bike 3: show the most recently rented bike 4: get counts of bikes currently rented out and bikes that are parked 5: get list of rented bikes, sorted by timestamp 6: get sorted list of bikes parked at kiosk Q: quit >>>>>> 2 Enter the bike id 1 Enter the kiosk id 55 Something went wrong - bike could not be rented Please enter a command 1: return a bike 2: rent a bike 3: show the most recently rented bike 4: get counts of bikes currently rented out and bikes that are parked 5: get list of rented bikes, sorted by timestamp 6: get sorted list of bikes parked at kiosk Q: quit >>>>>> 1 Enter the bike id 1 Enter the kiosk id 55 Something went wrong - bike could not be returned Please enter a command 1: return a bike 2: rent a bike 3: show the most recently rented bike 4: get counts of bikes currently rented out and bikes that are parked 5: get list of rented bikes, sorted by timestamp 6: get sorted list of bikes parked at kiosk Q: quit >>>>>> 3 Most recently rented bike is Bike 6 Model: ToughBike101 Current Status: CHECKEDOUT Date/Time status changed: 17-09-2022 17:06:08 922999 Please enter a command 1: return a bike 2: rent a bike 3: show the most recently rented bike 4: get counts of bikes currently rented out and bikes that are parked 5: get list of rented bikes, sorted by timestamp 6: get sorted list of bikes parked at kiosk Q: quit >>>>>> 4 Number of rented bikes: 5 Number of bikes returned to kiosks: 1 Total number of bikes in system: 6 Please enter a command 1: return a bike 2: rent a bike 3: show the most recently rented bike 4: get counts of bikes currently rented out and bikes that are parked 5: get list of rented bikes, sorted by timestamp 6: get sorted list of bikes parked at kiosk Q: quit >>>>>> Q Bye! System shutting down, goodbye