Yeah I got him, that's what I said, or so I thought lol. Well I didn't talk about that first if() without braces but yeah exactly, that's just it. If you put that println() inside the if(), and the...
Type: Posts; User: summit45
Yeah I got him, that's what I said, or so I thought lol. Well I didn't talk about that first if() without braces but yeah exactly, that's just it. If you put that println() inside the if(), and the...
Well if it throws that exception, that breaks out of the try {} block, and executes the catch statement. And if the number is in range, the if() {} block doesn't execute, so either way, that...
The if() {} statement is not inside a try {} block, so there is nothing to catch that exception, and the program will end.
If a number out of range is entered, the program stops running.
If a...