Android 面试 冒泡排序


public class BubbleSort {

    public static void main(String[] args) {

        int[] what = {2, 3, 1, 9, 4, 2, 5, 12, 31, 1};
        System.out.println("排序前顺序");
        for (int i : what) {
            System.out.print(i + "  ");
        }

        for(int i=0;i

你可能感兴趣的:(Android 面试 冒泡排序)