This is an example of using a try-catch block to handle the cases when a user inputs something other than the nice numbers we're looking for.
On this page of the site you can watch the video online BadNumbers - handling incorrect user input in Java with a duration of hours minute second in good quality, which was uploaded by the user Brandon Grasley 03 October 2014, share the link with friends and acquaintances, this video has already been watched 1,693 times on youtube and it was liked by 7 viewers. Enjoy your viewing!