@@ -0,0 +1,395 @@
+public class SelectionSort %7B%0A%0A%09public static void sort(int%5B%5D arr) %7B%0A%09%09for (int i = 0; i %3C arr.length; i++) %7B%0A%09%09%09int min = i;%0A%09%09%09for (int j = i + 1; j %3C arr.length; j++) %7B%0A%09%09%09%09/* find local min */%0A%09%09%09%09if (arr%5Bj%5D %3C arr%5Bmin%5D) %7B%0A%09%09%09%09%09min = j;%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%09swap(arr, i, min);%0A%09%09%7D%0A%09%7D%0A%0A%09private static void swap(int%5B%5D arr, int i, int j) %7B%0A%09%09int temp = arr%5Bi%5D;%0A%09%09arr%5Bi%5D = arr%5Bj%5D;%0A%09%09arr%5Bj%5D = temp;%0A%09%7D%0A%7D%0A

Add SelectionSort.java