Home > Back-end >  What is the problem
What is the problem

Time:10-02

Constructor is wrong

CodePudding user response:

You the problem of quotation?

CodePudding user response:

You this constructor with parameters did not define how to don't error

CodePudding user response:

There is not defined function and structure

CodePudding user response:

Do you want to use your own definition of the StringBuilder
Or the Java JDK. Lang. StringBuilder!
Your code is wrong because you write their own StringBuilder no corresponding constructor

CodePudding user response:

The
reference 4 floor JJFDK reply:
do you want to use your own definition of the StringBuilder
Or the Java JDK. Lang. StringBuilder!
Your code is wrong because you write their own StringBuilder no corresponding constructor

I was watching video according to copy is no problem if go back in the video I'm watching

CodePudding user response:

1/f, reference study YuBeiSheng response:
quotes problem?

Should not quote no problem

CodePudding user response:

reference bug10086 reply: 3/f
there is not defined and structure function of

Define what is not a guide package it is ok to create the object

CodePudding user response:

Public StringBuilder (String STR)
{
This. String=STR;
}

Similar to the above, in your own definition of Demo03. StringBuilder there?


More, the next post code directly, screenshot is not convenient

CodePudding user response:

No package are introduced, which is lack of package

CodePudding user response:

Because when you use StringBuilder is used in this class, you should choose the Java. Lang. StringBuilder, knock on StringBuilder IDEA which one you will be prompted to use StringBuilder, when this time choose Java. Lang, good, don't need to display the import Java lang package, because the default have been imported,
  • Related