diff --git a/java/SelectionSort.java b/java/SelectionSort.java new file mode 100644 index 0000000..baedddd --- /dev/null +++ b/java/SelectionSort.java @@ -0,0 +1,18 @@ + +public class SelectionSort { + public static void selectionSort(int[] array) { + for (int i = 0; i < array.length; i++) { + int minIndex=i; + for (int j = i+1; j < array.length; j++) { + if (array[j]