@@ -0,0 +1,884 @@
+class SelectionSort%0A%7B%0A    // Implementation of Selection Sort%0A    void sort(int ar%5B%5D)%0A    %7B%0A        int n = ar.length;%0A        for (int i = 0; i %3C n-1; i++)%0A        %7B%0A            int min = i, temp;%0A            for (int j = i+1; j %3C n; j++)%0A                if (ar%5Bj%5D %3C ar%5Bmin%5D)%7B%0A                    min = j;%0A            %7D%0A            temp = ar%5Bmin%5D;%0A            ar%5Bmin%5D = ar%5Bi%5D;%0A            ar%5Bi%5D = temp;%0A        %7D%0A    %7D%0A    // Prints the array%0A    void printArray(int arr%5B%5D)%0A    %7B%0A        int n = arr.length;%0A        for (int i = 0; i %3C n; i++)%0A            System.out.print(arr%5Bi%5D + %22 %22);%0A    %7D%0A    // Main function to test%0A    public static void main(String args%5B%5D)%0A    %7B%0A        SelectionSort ob = new SelectionSort();%0A        int arr%5B%5D = %7B79, 34, 7, 23, 11, 10, 99, 1, 15, 11%7D;%0A        ob.sort(arr);%0A        System.out.println(%22Sorted array:%22);%0A        ob.printArray(arr);%0A    %7D%0A%7D%0A

Create selection_sort.java