package com.sysu.admin.support.cfg;

import java.util.Arrays;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @author shu hao
 * @description:
 * @date 2021/12/30 14:21
 */
public class ThreadContext {

//    static public ExecutorService executor = Executors.newFixedThreadPool(5);


    public static void main(String[] args) {

        int[] arr = { 5 , 6 , 4 , 3 , 5 , 1};
        for(int i=0;i < arr.length - 1;i++){
            for(int j = i + 1; j < arr.length; j++){
                if(arr[i] > arr[j]) {
                    int temp = arr[i];
                    arr[i] = arr[j];
                    arr[j] = temp;
                }
            }
        }
        System.out.println(Arrays.toString(arr));

    }

}
