-2

我用 Java 编写了一个代码来计算圆的面积和周长。当我想打印输出时,我不能执行以下操作:

"The area of a circle with a radius of" +radius "is" +area

相反,它打印如下:

"The area of a circle with a radius of" +radius
"is" +area

提前感谢您提供可能的解决方案。

4

1 回答 1

0
"The area of a circle with a radius of" + radius + "is" + area
于 2015-09-18T09:43:55.803 回答