我怎么感覺我偷奸取巧了。。
public class HelloWorld{
? ? public static void main(String[] args) {
? ? int one = 10 ;
? ? ? ? int two = 20 ;
? ? ? ? //int three = 0 ; 我吧這一行注釋了。。
? ? ? ? int three = one + two ;
? ? ? ? //System.out.println(three);
? ? ? ? System.out.println(three +"==>30");
? ? ? ? System.out.println((three += one) + "==>40");
? ? ? ? System.out.println((three -= one) + "==>30");
? ? ? ? System.out.println((three *= one) + "==>300");
? ? ? ? System.out.println((three /= one) + "==>30");
? ? ? ? System.out.println((three %= one) + "==>0");
}
}
2020-06-01
確實,不過這就是個演示,無所謂的,懂了就好