Then I guess I don't understand your question. What exactly is the line you're having trouble with? What's the problem? Are you getting an exception? Something else?
Type: Posts; User: KevinWorkman
Then I guess I don't understand your question. What exactly is the line you're having trouble with? What's the problem? Are you getting an exception? Something else?
Basically, the problem is that Java needs a guarantee that a variable has been initialized before it can use it. So this won't compile:
int x;
if(something){
x = 1;
}
...