Search:

Type: Posts; User: Norm

Search: Search took 0.13 seconds.

  1. Replies
    11
    Views
    4,972

    Re: Unhandled Exception Type FileNotFoundException

    What is that posted code supposed to show?
    Why the if statement when the results looks like the code always does a return line?
  2. Replies
    11
    Views
    4,972

    Re: Unhandled Exception Type FileNotFoundException

    Are you talking about another part of the program, not the throws clause?


    How does it do that?
  3. Replies
    11
    Views
    4,972

    Re: Unhandled Exception Type FileNotFoundException

    Can you explain what " stopped working" means?

    What happens with the String returned by the inputCommandFile() method?
  4. Replies
    11
    Views
    4,972

    Re: Unhandled Exception Type FileNotFoundException

    Did you read the tutorial? What you just asked does not make sense.
    catch goes with the try statement.
    methods use the throws clause
  5. Replies
    11
    Views
    4,972

    Re: Unhandled Exception Type FileNotFoundException

    private static String inputCommandFile(String s) throws FileNotFoundException

    That method is defined to throw an exception. Any code that calls that method must be ready to handle the exception...
Results 1 to 5 of 5