java冒泡排序代码

java冒泡排序代码

public class BubbleSorted {
    static int[] nums = {6, 11, 2, 5, 9, 3, 4, 7, 10, 8};
    public static void main(String[] args) {
        int temp=0;
        for (int i = 1; i < nums.length; i++) {
            for (int j = 0; j 

java冒泡排序代码_第1张图片

你可能感兴趣的:(笔记)