public static void main(String[] args) {
// TODO Auto-generated method stub
int a=0;
int b=1;
System.out.println(a+","+b);
myswap(a,b);
}
public static void myswap(int a,int b)
{
int temp=0;
temp=a;
a=b;
b=temp;
System.out.println(a+","+b);
}
这样就可以了-。- |