diff --git a/selectionSort.class b/selectionSort.class new file mode 100644 index 0000000..de086bf Binary files /dev/null and b/selectionSort.class differ diff --git a/selectionSort.java b/selectionSort.java new file mode 100644 index 0000000..6b8f957 --- /dev/null +++ b/selectionSort.java @@ -0,0 +1,32 @@ +import java.util.Scanner; +public class selectionSort { + + public static void main(String[] args) { + int n; + System.out.println("Enter number of elements to be added"); + n = new Scanner(System.in).nextInt(); + int[] arr = new int[n]; + int minIndex=0; + System.out.println("Enter integer"); + for(int i = 0;i