CodePudding user response:
You copy the wrongCodePudding user response:
There are often mistakes in the book, understand the way of thinkingCodePudding user response:
Instantiation of the inner class reference to write wrong,,, you this instantiation is outside classCodePudding user response:
To believe books than without, of course, I think you copy wrong probability is bigger, this is not your inner class... If it is the inner class, the bracket position is not rightCodePudding user response:
public class Test22 {
Public static void main (String [] args) {
Test22. ATTT a=new Test22 () new ATTT ();
}
The class ATTT {}
}
CodePudding user response:
Phone has cured my years of cervical spondylosis, and, in fact I like upstairs, has been in a few of your braces,10, 18 lines of braces must be wrong, the back of the watch is not at fault structure method and the main method to write outside class, your eclipse is dizzy, and tu this reference, want to call the ios method, should be pointing to the inner class instance, you point to an outside the class instances,
This is the problem of grammar, combined with more IDE error correction yourself, spend a few days time to turn the idea, more comfort,
CodePudding user response:
You can watch the eclipse left to make what wrong, modify againCodePudding user response: