热门

最新

红包

立Flag

投票

同城

我的

发布
wind_an
boboj1
4 年前
truewind_an

我用#CSDN#这个app发现了有技术含量的博客,小伙伴们求同去《ajax的封装》, 一起来围观吧 https://blog.csdn.net/Wind_AN/article/details/117263924?utm_source=app&app_version=4.7.1&code=app_1562916241&uLinkId=usr1mkqgl919blen

CSDN App 扫码分享
分享
评论
点赞
打赏
  • 复制链接
  • 举报
下一条:
求解public class Test{ public static void main(String[] args){ Count myCount=new Count(); int times=0; for(int i=0;i<100;i++) increment(myCount,times); System.out.println("Count is"+myCount.count); System.out.println("times is"+times); } public static void increment(Count c, int times){ c.count++; times++;}} public class Count{ public int count; public Count(int c){ count=c;} public Count(){ count=1;}}
立即登录