==>是什么有什么用?

来源:3-3 Java中的赋值运算符

拖延症拯救世界3638295

2016-07-14 19:16

不加不也能正常运行吗?

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


写回答 关注

2回答

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

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

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

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

Java入门第一季(IDEA工具)

0基础萌新入门第一课,从Java环境搭建、工具使用、基础语法开始

1168440 学习 · 18754 问题

查看课程

相似问题