When a user enters a number that is not 1 or 2, how can I make my function restart?
I would like my "else if" snippet to restart the menuList function so that the user has a second chance to enter a choice.
Do I need to initialize my functions from within a loop in order to do this? Maybe put the menuList function inside of a do while loop? Any ideas? And if I do a loop, can I make it a part of a class?
So this is like perfection. If the user decides that they want to slam their head into the keyboard, everything is going to start over again. And it will keep doing that until the head slammer manages to hit a 1 or a 2.
Gonna post my code in final form just in case anyone has a similar question: