public class Something {
public static void main(String[] args) {
Other o = new Other();
new Something().addOne(o);
}
public void addOne(final Other o){
o.i++;
}
}
class Other{
public int i;
}
这句代码看不懂
new Someting().addOne(o),为什么里面必须o