Jun-18-2024, 07:30 PM
It is difficult to give a proper suggestion if I can't see the rest of the code. I'm assuming your code runs in a loop? If so, I think my suggestion would still work, since it will repeat the input section again.
If not, it would be a matter of overall design of your program. There would different ways to ask for input again after an exception.
If not, it would be a matter of overall design of your program. There would different ways to ask for input again after an exception.