帮帮看看这个字符串
gwgyk 2010-12-10 09:01:18 public class J_String
{
public static void mb_operate(String x, String y)
{
x.concat(y);
y = x;
}
public static void main(String args[])
{
String a = "A";
String b = "B";
mb_operate(a,b);
System.out.println(a + "." + b);
}
}
输出结果是什么??
(A)A.B (B)A.A (C)AB.AB (D)AB.B
字符串连接函数使用时只能是用实际字符串吗?用变量不行吗?