package com.datastack.search;

import java.util.Arrays;

//选择排序
public class SelectSort {
    public static void main(String[] args) {
        int[] arr = new int[] {5,3,2,54,5,1,23,5,3,2,3,1,5,65};
        selectSort(arr);

        System.out.println(Arrays.toString(arr));
    }
    //选择排序
    public static void selectSort(int[] arr){
        for(int i=0;i