My task is to output the results of a certain operation to the console, and I used this approach:
System.out.println(result + "text" + "eshoPeremennaia" + "text i tak dalee");
But I was answered for this case: нельзя складывать строки. используй String.format. нельзя складывать строки. используй String.format.
Tell me how it is solved with the help of String.format where I don’t look about this method everywhere they tell how to restrict the decimal points or how to move the string ... Maybe someone knows how to bring this to the console without folding the strings ..?
resultjust a variable? or is there some kind of additional text? - Grundy