两个变量值互换(不用第三变量) 见方法:
public static void change (int x, int y) { x = x + y; y = x - y; x = x - y; //两种都可以 x = x*y; y = x/y; x = x/y; }