I have a main menu for a movie kiosk, I can type a number (in this case 5) and it will take me to an admin menu. The problem is the admin menu has a different set of cases and when I enter a number to access a case from the admin menu it just takes me back to the main menu.
I am not sure what I could change in the code to make it work, I expected that when I enter a number in the admin menu, it will execute the method specified.
At the beginning I call the use()
method from the Kiosk
class
Which executes this menu:
When I press 2 it takes me to the main menu instead of executing addCustomer()
.