How to - Error handle & Use try{ }catch

If you want to keep your code from crashing when the user doesn't input a number when you save it to a int or double, you can use the try catch.

In the video, I'll go over how to prompt the user for input, save it as a variable, parse it for the number, and keep the code from crashing if they choose to input a letter or symbol.
DETAILED VIDEO BELOW

No comments:

Post a Comment