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

为什么不加int

这里为什么不用int three=one+two  ,而直接three=one+two 

提问者:279338810 2015-06-25 10:21

个回答

  • Perona
    2015-06-25 10:23:31

    前面已经声明了three的数据类型。

    int three = 0 ;