Java 编译器对 String 做了特殊处理,使得我们可以直接用 + 拼接字符串。 考察下面的循环代码: String s = ""; for (int i = 0; i < 1000; i++) { s = s + "," + i; }.
確定! 回上一頁