Zdar. Hej pokud mám kod na selection sort
public static void selectionSort(int[] array) {
for (int i = 0; i < array.length - 1; i++) {
int maxIndex = i;
for (int j = i + 1; j < array.length; j++) {
if (array[j] > array[maxIndex]) maxIndex = j;
}
int tmp = array[i];
array[i] = array[maxIndex];
array[maxIndex] = tmp;
}
}
co mám doplnit do toho pole maxIndex?
díky