package shili;
public class Test {
public void doStr(StringBuffer s) {
s.append("one");
}
public static void main(String[] args) {
StringBuffer s = new StringBuffer("every");
Test test = new Test();
test.doStr(s);
System.out.println(s);
}
}
输出结果: