@@ -0,0 +1,1308 @@
+import java.util.*;%0D%0A%0D%0Apublic class BubbleSort %7B  %0D%0A    static void bubbleSort(int%5B%5D arr) %7B  %0D%0A        int n = arr.length;  %0D%0A        int temp = 0;  %0D%0A         for(int i=0; i %3C n; i++)%7B  %0D%0A                 for(int j=1; j %3C (n-i); j++)%7B  %0D%0A                          if(arr%5Bj-1%5D %3E arr%5Bj%5D)%7B  %0D%0A                                 //swap elements  %0D%0A                                 temp = arr%5Bj-1%5D;  %0D%0A                                 arr%5Bj-1%5D = arr%5Bj%5D;  %0D%0A                                 arr%5Bj%5D = temp;  %0D%0A                         %7D  %0D%0A                          %0D%0A                 %7D  %0D%0A         %7D  %0D%0A  %0D%0A    %7D  %0D%0A    public static void main(String%5B%5D args) %7B  %0D%0A                int arr%5B%5D =%7B3,60,35,2,45,320,5%7D;  %0D%0A                 %0D%0A                System.out.println(%22Array Before Bubble Sort%22);  %0D%0A                for(int i=0; i %3C arr.length; i++)%7B  %0D%0A                        System.out.print(arr%5Bi%5D + %22 %22);  %0D%0A                %7D  %0D%0A                System.out.println();  %0D%0A                  %0D%0A                bubbleSort(arr);//sorting array elements using bubble sort  %0D%0A                 %0D%0A                System.out.println(%22Array After Bubble Sort%22);  %0D%0A                for(int i=0; i %3C arr.length; i++)%7B  %0D%0A                        System.out.print(arr%5Bi%5D + %22 %22);  %0D%0A                %7D  %0D%0A   %0D%0A        %7D  %0D%0A%7D  

Add Bubble Sort