I created a number format try catch: which is something like this
try{
int blabla = sc.nextInt();
} catch (numberFormatException E) {
doSomething();
}
How can I go straight to the catch, if say, blabla > 100
?
Can I go straight to the catch, without having a number format exception, and using if statements? The try catch is mainly for when a string is entered.