Catch NumberFormatException and print out a helpful message for users