@@ -0,0 +1,919 @@
+package com.naughtyzombie.sorting.selection;%0A%0A/**%0A * Created by pram on 24/06/2015.%0A */%0Apublic class SelectionSort %7B%0A    public static void main(String%5B%5D args) %7B%0A        int%5B%5D input = %7B4, 2, 9, 6, 23, 12, 34, 0, 1, 4, 6, 3%7D;%0A        SelectionSort ss = new SelectionSort();%0A        int%5B%5D output = ss.selectionSort(input);%0A        for (int i : output) %7B%0A            System.out.print(i);%0A            System.out.print(%22, %22);%0A        %7D%0A    %7D%0A%0A    private int%5B%5D selectionSort(int%5B%5D input) %7B%0A        for (int i = 0; i %3C input.length - 1; i++) %7B%0A            int val = input%5Bi%5D;%0A            int index = i;%0A            for (int j = i + 1; j %3C input.length; j++) %7B%0A                if (input%5Bj%5D %3C input%5Bindex%5D)%0A                    index = j;%0A%0A                int smallerNumber = input%5Bindex%5D;%0A                input%5Bindex%5D = input%5Bi%5D;%0A                input%5Bi%5D = smallerNumber;%0A            %7D%0A        %7D%0A%0A        return input;%0A    %7D%0A%7D%0A

implement selection sort