three-=one----------------three=three-one的值不是20吗,为什么是30
three-=one----------------three=three-one的值不是20吗,为什么是30
three-=one----------------three=three-one的值不是20吗,为什么是30
2020-10-14
int one = 10 ;
int two = 20 ;
int three = 0 ;
three = one+two; = 30
three += one; =40
System.out.println(three);
three -= one; (此处three=40,上一步得到的)
System.out.println(three);
three *= one;
System.out.println(three);
three /= one;
System.out.println(three);
three %= one;
System.out.println(three);
别忘了,three的值一直在变化
举报