I’m trying to use try catch to verify that the datatypes that were input by the user match what is allowed.
As in the input dialog asks the user for their phone number - the try catch will make sure that it is an integer.
I’m having issues with the CATCH portion. I have try → user inputs their name and phone number. Any advise on the catch to make sure the datatypes match?