I am currently trying to figure out how to use Eclipse to program Escape models in java. I am quite new to Escape and Eclipse, and it has been a while since I programmed in java
public class CoordinationGame extends Scape {
// ...
int test2;
// ...
test2 = 3; // <- errror
}
This is illegal, we can't assign values this way in a class body. The other code was legal because you used a static initializer to init the field test2
.
The error message is pretty misleading but, honestly, that happens quite often in Java ;)