I am getting user input via a scanner and am checking what it equals with if (input.equals(“whatever”)), and want to check for multiple things. Example, if an option in the menu is “Attack”, I want to check if they typed “Attack” and “attack” and “a” and many others. Is there a way to do this with only one if statement?
Thanks,
Nathan