class AriTest{
public static void main(String[] args){
int a = 20;
int b = 59;
int tem = b;
b = a;
a = tem;
System.out.println(a+"\n"+b);
}
}
#java练习#交换两个变量值的代码的实现
于 2022-03-30 18:58:00 首次发布
class AriTest{
public static void main(String[] args){
int a = 20;
int b = 59;
int tem = b;
b = a;
a = tem;
System.out.println(a+"\n"+b);
}
}