62,614
社区成员
发帖
与我相关
我的任务
分享
public class test {
int a = 3;
public void add(){
a=a+1;
}
public void plus(test b){
b.add();
}
public static void main(String args[])
{
test t = new test();
t.plus(t);
System.out.println(t.a);
}
}