如何在Java中连接两个字符串?我试图在Java中连接字符串。为什么这不管用?public class StackOverflowTest {
public static void main(String args[]) {
int theNumber = 42;
System.out.println("Your number is " . theNumber . "!");
}}
3 回答
哈士奇WWW
TA贡献1799条经验 获得超6个赞
+
System.out.println("Your number is " + theNumber + "!");
theNumber
"42"
.
添加回答
举报
0/150
提交
取消