Hi friends! Im
testing annonymous classes and I cant get it compiled. See my test:
When I try to compile this code the
java says that I need to put a ';' to close the block. Whats wrong?
Im getting this error "No enclosing instance of type Test is accessible. Must qualify the allocation with an enclosing instance of type Test (e.g. x.new A() where x is an instance of Test)."
Can someone explain what the compiler is talking about?
Thanks!