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