int a=10; int b=20; a+=b; System.out.println("a+=b, a="+a+" b="+b); a = 10; b=20; a=a+b; System.out.println("a=a+b, a="+a+" b="+b);//源代码片段来自云代码http://yuncode.net