📜  java 交换变量 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:11.597000             🧑  作者: Mango

代码示例1
// a, b can be a numeric value
a += b; // a = a + b
b = a - b; // b = (a + b) - b = a  ---> b=a
a -= b; // a = (a + b) - (a) = b  ---> a=b