查找代码错误.java

复制代码
class  Other{

   public  int  i;

}

class Something{
   
   public  static  oivd  main(String[]args){

          Other  o  = new Other();
           
          new Something().addOne(o);

}


    public  void addOne(final  Other  o){

     o.i++;
     
     o=new  Other();
}


}
复制代码

posted @   Fighting`  阅读(282)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示