public class Test {
public static void main(String []args){
int s = 123;
String m = "123";
Ani a = new Ani();
a.change(s);
System.out.println(s);
a.change(m);
System.out.println(m);
StringBuffer t= new StringBuffer("123");
a.change(t);
System.out.println(t);
StringBuffer t2= new StringBuffer("123");
a.change2(t2);
System.out.println(t2);
}
}
class Ani{
public void change(int s){
s=123456;
}
public void change(String m){
m+="456";
}
public void change(StringBuffer t){
t.append("456");
}
public void change2(StringBuffer t2){
t2 = new StringBuffer("000");
}
}