📜  用临时变量交换 java 中的两个数字 - Java 代码示例

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

代码示例2
int a = 5;
int b = 6;

int temp = a;
a = b;
b = temp;

// now a is 6 and b is 5.