Search:

Type: Posts; User: Ancharius

Search: Search took 0.14 seconds.

  1. Replies
    10
    Views
    2,092

    [SOLVED] Re: Catch without a try error

    Thanks guys I fixed it in class today. I had to set my double monthlypay1=0; and that made it work. As for the hiding my variable's I'll fix that up so my variables aren't hiding. But thanks for...
  2. Replies
    10
    Views
    2,092

    [SOLVED] Re: Catch without a try error

    The one at the bottom.


    while (monthlypay1 < 0) {
    System.out.print("You need to enter positive numerical data!");
    break;


    }
    ...
  3. Replies
    10
    Views
    2,092

    [SOLVED] Re: Catch without a try error

    Ok i fixed the error's of catch without a try and vice versa. But now its telling me that my variable "monthlypay1" is not initialized which I don't understand how it isn't. Otherwise the code...
  4. Replies
    10
    Views
    2,092

    [SOLVED] Re: Catch without a try error

    Thanks alot guys. I will look at the tutorial. And My java teacher told me to put everything within the try block to make it more simple. Because it will try through everything and catch any error at...
  5. Replies
    10
    Views
    2,092

    [SOLVED] Catch without a try error

    I'm doing a project where I have to catch a user inputting a string into one of the prompt.
    Problem is it seems I always get catch without a try error no matter what I do.
    it keeps saying expected...
Results 1 to 5 of 5