System.out.println("In swapping class value of a after swapping ="+a + " and that of b=" + b);现在,在void ()中的a1和b1的值与在a1和b1上实现交换操作之后的虚拟println语句相同。这与调用交换函数之前在主函数中打印的值相同。但是,函数</em
如果我把下面这几行代码放在下面这几行代码中,程序就会像我预期的那样工作: temp = arr[x];arr[y] = temp; 在selectionSort函数下,但不使用交换函数。下面是我的代码: class selectionSort { for (int x = 0; x < arr.length