62,623
社区成员
发帖
与我相关
我的任务
分享
public class TestStringBuffer {
public static void main(String[] args) {
StringBuffer a=new StringBuffer("A");
StringBuffer b=new StringBuffer("B");
method(a,b);
System.out.println(a+","+b);
}
public static void method(StringBuffer x,StringBuffer y){
x.append(y);
y=x;
}
}