/**
* 打印數(shù)組內(nèi)容
*
* @param a
*/
public static void saymsg(int[] src) {
for (int i = 0; i < src.length; i++) {
System.out.print(src[i]);
System.out.print(" ");
}
System.out.println();
}
/**
public static void main(String[] args) { int[] src = { 49, 38, 65, 97, 76, 13, 27, 49, 78, 34, 12, 64, 5, 4, 62, 99, 98, 54, 56, 17, 18, 23, 34, 15, 35, 25, 53, 51 }; System.out.println("原始數(shù)組排序:"); saymsg(src); selectSort(src); }
![](//atts.w3cschool.cn/attachments/image/20170727/1501145406535532.gif)
*圖片來自維基百科*
更多建議: