My technology teacher would like me to create a basic text game as a way to demonstrate user input.
Here's the problem:
I am using a Scanner to get user input and set that input to a varible:
System.out.println("If you're ready, type any number to begin:");
That sets A1 to whatever the user types in. If the user were to type in a number that's not a choice, nothing happens. If the user types in anything but a number, they get an error.
What do I use to repeat the question if they type in something that is not an option?