From 963d8f157dab89eafabb655b7fea10ce971c1442 Mon Sep 17 00:00:00 2001 From: JavvajiSumanth99 <56475971+JavvajiSumanth99@users.noreply.github.com> Date: Sat, 12 Oct 2019 19:11:45 +0530 Subject: [PATCH] Java Program for Selection Sort #44 Java Program to Sort the elements using Selection Sort --- Sort/Java/Selection Sort | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Sort/Java/Selection Sort diff --git a/Sort/Java/Selection Sort b/Sort/Java/Selection Sort new file mode 100644 index 0000000..ddaad89 --- /dev/null +++ b/Sort/Java/Selection Sort @@ -0,0 +1,23 @@ +public class SelectionSort { + public static void main(String args[]){ + int array[] = {10, 20, 25, 63, 96, 57}; // declaration of array + int size = array.length; + + for (int i = 0 ;i< size-1; i++){ + int min = i; + + for (int j = i+1; j