慕粉1749238652
2017-11-01 14:21
int one = 10 ; int two = 20 ; int three = 0 ; three=one+two; three+=one; System.out.println("three=one+two==>"+three); System.out.println("three+=one==>"+three); 结果都是40为啥?
你把顺序调换一下,就清楚了:
int one = 10 ;
int two = 20 ;
int three = 0 ;
three=one+two;
three+=one;
System.out.println("three+=one==>"+three);
Java入门第一季(IDEA工具)升级版
1165172 学习 · 17581 问题
相似问题