I\'m trying to make a small program more robust and I need some help with that.
Scanner kb = new Scanner(System.in); int num1; int num2 = 0; System.out.prin
What you could do is also to take the next token as a String, converts this string to a char array and test that each character in the array is a digit.
I think that's correct, if you don't want to deal with the exceptions.