码迷,mamicode.com
首页 > 编程语言 > 详细

查找代码错误.java

时间:2016-06-11 13:16:05      阅读:168      评论:0      收藏:0      [点我收藏+]

标签:

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();
}


}

技术分享

查找代码错误.java

标签:

原文地址:http://www.cnblogs.com/WJ-163/p/5575078.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!