数组从小到大排序

import java.util.Arrays;
//数组从小到大排序



public class Demo01 {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        int[] arr={99,1,5,44,66,44,33,9};
        Arrays.sort(arr);
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]+"");
        }
    }

}

 

转载于:https://www.cnblogs.com/a709898670/p/9395392.html

你可能感兴趣的:(数组从小到大排序)