Search:

Type: Posts; User: JavaGirl9001

Search: Search took 0.13 seconds.

  1. Re: Variable might not have been initialized

    Thanks!

    I set it to null and now it works. I didn't know they didn't have default values, I was always wondering why I got these funny little errors.

    Thank you :)
  2. Re: Variable might not have been initialized

    Shouldn't it return null? and yes the last one works correctly
  3. Re: Variable might not have been initialized

    It won't actually compile if I use that code. Or the second code.
  4. Variable might not have been initialized

    RESOLVED: So I have this code that returns the highest payed employee. But it wont compile and I get the error message, 'variable employee might not have been initialized'.



    /**
    *...
  5. Replies
    1
    Views
    1,931

    Is this bad code design?

    This method checks to see if the proposed move can be made.
    My lab says "You are not expected to catch the exception, just be sure it is thrown in the appropriate place. "

    But for my final...
  6. Replies
    1
    Views
    1,990

    Exception handling

    EDIT: I'm pretty sure I just figured this out but I still have so many questions!!

    I have 3 classes, the input reader class code was given to me, so I don't think I'm suppose to change that.
    This...
Results 1 to 6 of 6