Home > Back-end >  Why the book copy down and wrong?
Why the book copy down and wrong?

Time:09-18

I don't understand (=_=) changed so long can't just according to the books copied or so,,,

CodePudding user response:

You copy the wrong

CodePudding user response:

There are often mistakes in the book, understand the way of thinking

CodePudding user response:

Instantiation of the inner class reference to write wrong,,, you this instantiation is outside class

CodePudding 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 right

CodePudding 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 again

CodePudding user response:

refer to the original poster qq_46152955 response:
I don't understand (=_=) changed so long can't just according to the books copied or so,,,



Tu is a Defdat instance class, Defdat is no ios method, so the error, to see if the first copy wrong, if the copy is not at fault, they consider why error, can see why the book is also a kind of wrong, only know don't know where the wrong is wrong, feeling didn't learn anything, just follow in writing books, from books or what all can't,

  • Related