Search:

Type: Posts; User: JavaGirl9001

Search: Search took 0.11 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'.



    /**
    *...
Results 1 to 4 of 4