摘要:
package com.kite.test.bubbleSort;public class BubbleSort { public static void main(String[] args) { // 待排序数组 int arr[] = { 1, 3, 4, 5, 9, 7, 10, 8, 2, 6 }; // 升序排列 bubbleSortAsc(arr); // 降序排列 bubbleSortDesc(arr); } /** * 冒泡排序Asc * * @return */ p...
阅读全文