private static void operate(StringBuffer x,StringBuffer y) {
x.append(y);//x的值改变了,对应外面参数a的值也变了
y=x;//y的“指向”变了,外面的参数b的指向并不会改变
}