51,408
社区成员
发帖
与我相关
我的任务
分享public void testFile(){
int count=0;
for(int i=0;i<100;i++){
count++;//count = count+1;
}
System.out.println(count);
}
a=a++;分解如下:
temp=a;
a++;
a=temp;
你这代码写的 也是人才了
IINC 1 1 //count自增,count=1
ILOAD 1 //加载count到操作数栈,操作数栈为1
ISTORE 1 //把操作数栈的数据存到局部变量表的count里,count=1
count = count++ :
ILOAD 1 //加载count到操作数栈,操作数栈为0
IINC 1 1 //count自增,count=1
ISTORE 1 //把操作数栈的数据存到局部变量表的count里,count=0