问答详情
源自:3-3 Java中的赋值运算符

给那些有代码有问题的同学,可以参考下

 这是我自己的代码,如果有哪里不懂或者有问题,可以扣我,共同进步。


 int one = 10;

        int two = 20;

        int three;


        System.out.println("three = one + two ==>" + (three = one + two));

        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));

        System.out.println("three %= one ==>" + (three%=one));


提问者:FlowerSeven 2018-12-25 14:13

个回答

  • 慕移动800326
    2018-12-25 20:38:43

    嗯,可以,good!