Hi, I'm writing a method that asks the user for an integer. The user can enter a string or anything they want. If the user enters anything but an integer, the method would repeatedly ask the user for an integer until the user enters one. I'm confused right now, how do I check if a string is an integer? :confused:
Can anyone help?