Hey, I am making a simple program and I am trying to have a user input a number. Whenever there is an alphabet character in the number, I want it to have an error message. I have tried to do this by a try and catch statement, but that doesn't work. Am I doing that wrong or if there is another way to do this?
↧