📜  交换两个数字java代码示例

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

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

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

// now a is 6 and b is 5.