Hello,
I would like to declare a field as static final, yet set it later by a method after the method does some computation. Is there a way to do this?
If I:
static final int var;
public void my method(){
calculate something...
var = answer;
}
I get a compile time error.
I've done a lot of searching on this but haven't come up with anything yet.