Search:

Type: Posts; User: Norm

Search: Search took 0.26 seconds.

  1. Replies
    14
    Views
    1,922

    [SOLVED] Re: Problems with Try/Catch Catching Wrong Exception

    Most programmers do NOT expect a NPE. They add code to test ALL data that is read and to handle all cases that they can think of. Bad input is very common and should be handled in the main code, not...
  2. Replies
    14
    Views
    1,922

    [SOLVED] Re: Problems with Try/Catch Catching Wrong Exception

    Could you make a version of your code that uses the Scanner class with a String defining the input so that others could test the code without having to go to console mode and spoon feed the program...
  3. Replies
    14
    Views
    1,922

    [SOLVED] Re: Problems with Try/Catch Catching Wrong Exception

    Add a printStackTrace to see exactly where the error is occurring.
Results 1 to 3 of 3