Good day, the next question. Here is the code:
public String toString() { String text ="sss"; text.concat("dss"); return text; } and the concat will not be executed, IDE’s informs about this as follows:
Call it ignored. Both methods are checked. It is almost certainly an error. An example of where you’d like to read the java.io.inputStream.read (), is to read the java.lang.String or java.math. If you’re ignoring.
So, someone can explain in connection with which everything is so and how not to catch this?
text=text.concat("dss");? (concat does not change the variable?) - Batanichek Nov.