@Test
public void sort() {

    int[] ary = generatorArray(100);
    //1. 第一个元素
    for (int i = 0; i < ary.length; i++) {
        int minIndex = i;
        for (int j = i + 1; j < ary.length; j ++) {
            if (ary[j] < ary[minIndex]) {
                minIndex = j;
            }
        }
        Helper.swap(ary, i, minIndex);
    }
    for (int i = 0; i < ary.length; i++) {
        System.out.println(ary[i]);
    }
}