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'.
/**
*...
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...
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...