查找代码错误.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 @ 2016-06-11 11:41  Fighting`  阅读(281)  评论(0编辑  收藏  举报