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 :)
Type: Posts; User: JavaGirl9001
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 :)
Shouldn't it return null? and yes the last one works correctly
It won't actually compile if I use that code. Or the second code.
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'.
/**
*...