void whileInt(){
int i=0;
while(i<100){
i++;
}
}
上述代码编译后能写成这样吗(前面的索引号瞎写的)
0 iconst_0
1 istore_1
2 iload_1
3 bipush 100
4 if_icmplt 6
5 return
6 iinc 1 1
7 goto 2
或者
0 iconst_0
1 istore_1
2 goto 6
3 if_icmplt 5
4 return
5 iinc 1 1
6 iload_1
7 bipush 100
8 goto 3