Search:

Type: Posts; User: summit45

Search: Search took 0.19 seconds.

  1. Re: What is the difference between a statement surrounded by curly brackets and one that isn't?

    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...
  2. Re: What is the difference between a statement surrounded by curly brackets and one that isn't?

    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...
  3. Re: What is the difference between a statement surrounded by curly brackets and one that isn't?

    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...
Results 1 to 3 of 3