Avoid an InputMismatchException when a number is expected but a string ins entered instead - using if-statements.
Based on the changes we did in this program, it now avoids a NumberFormatException.
Checking of empty entries is added to this program in: [ Ссылка ]
Running this program from Android Studio: [ Ссылка ]
Ещё видео!