Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我用 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