package iYou.neugle.sort; public class Select_sort {
public static void SelectSort(double[] array) {
for (int i = 0; i < array.length - 1; i++) {
int tempIndex = i; for (int j = i + 1; j < array.length; j++) {
if (array[tempIndex] > array[j])
tempIndex = j;
} double tempData = array[tempIndex];
array[tempIndex] = array[i];
array[i] = tempData;
}
}
}