不能理解,为什么three在下一行的值会变成上一行的值
package com.wolike;
public class 试题8赋值运算符 {
public static void main(String[] args){
int one=10;
int two=20;
int three=30;
System.out.println("three=one+two==>"+(two+one));
System.out.println("three+=one==>"+(one+three));
System.out.println("three*=one==>"+(three*one));
System.out.println("three/=one==>"+(three/one));
System.out.println("three-=one==>"+(three-=one));
System.out.println("three%=one==>"+(three%one));
}
}
最后输出的是:
three=one+two==>30
three+=one==>40
three*=one==>300
three/=one==>3
three-=one==>20
three%=one==>0