If you remove the private for field, it compiles???
Type: Posts; User: Norm
If you remove the private for field, it compiles???
Whoops, I used the old version of MyClass with a static final class instance.
The following is the way to reference static variables in a class:
MyClass.myInstance
myInstance is not a static...
That code compiles with no errors.
Where is the problem?
Please post a small, complete program that I can compile and get these errors from.
Two lines of code can't be compiled to get the errors.
Please post the full text of the error message and the code that caused it.
Put an extra pair of {}s around the assignment statement.