Convert the following Java method into pseudocode (perhaps using the guidelines in the slides):
public static void selectionSort(int[] array){ int n =
array.length; for (int i = 0; i < n - 1; i++){ int minIndex = i;
for (int j = i + 1; j < n; j++){ if (array[j] <
array[minIndex]){ minIndex = j; } } int temp = array[minIndex];
array[minIndex] = array[i]; array[i] = temp; } }