It's important that all of the methods in Cleanser are public.
As for the first question, the original text (page 168) is:
First, in the Cleanserappend() method, Strings are concatenated to s using the += operator, which is one of the operators (along with '+') that the Java designers " overloaded" to work with Strings.
The translation is inappropriate and should be translated as "overloading" If you know C++, you will know that this is equivalent to the String class reimplementing the "+=" operator. "+=" can be used for string splicing.
书翻译的不准确,没了!
Such an obvious problem, everyone knows it...
Do you have to have someone else confirm it for you before you can have the confidence to think that the problem is with the book and not yourself?
The original English text (page 169) is:
As for the first question, the original text (page 168) is:
The translation is inappropriate and should be translated as "overloading"
If you know C++, you will know that this is equivalent to the String class reimplementing the "+=" operator. "+=" can be used for string splicing.