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

==>是什么有什么用?

不加不也能正常运行吗?

  int one = 10 ;

       int two = 20 ;

       int three = 0 ;

       three = one + two ;

    

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

       System.out.println(  three += one  );

       System.out.println(three -= one);

       System.out.println( three *= one);

       System.out.println( three /= one);

       System.out.println( three %= one);


提问者:拖延症拯救世界3638295 2016-07-14 19:16

个回答

  • qq_罗刹晓舜_03669504
    2016-07-17 13:50:32

    代码上不用写,那是结果等于多少的意思,不用纠结

  • 拖延症拯救世界3638295
    2016-07-14 19:19:00

    另外为什么别人的代码都和我的不一样?