@@ -1 +1,905 @@
+package com.sort.bubblesort;%0A%0Apublic class BubbleSort %7B%0A    %0A    private BubbleSort() %7B%7D%0A  %0A    public static void sort(int%5B%5D arr) %7B%0A        int arrLength = arr.length;%0A      %0A        boolean swapped = true;%0A      %0A        while (swapped) %7B%0A            swapped = false;%0A            %0A            for (int i = 1; i %3C arrLength; i++) %7B%0A                if (arr%5Bi - 1%5D %3E arr%5Bi%5D) %7B%0A                    swap(arr, i - 1, i);%0A                    swapped = true;%0A                %7D%0A            %7D%0A            %0A            arrLength--;%0A        %7D%0A    %7D%0A  %0A    public static void swap(int%5B%5D arr, int i, int j) %7B%0A        int temp = arr%5Bi%5D;%0A        arr%5Bi%5D = arr%5Bj%5D;%0A        arr%5Bj%5D = temp;%0A    %7D%0A  %0A    public static void main(String%5B%5D args) %7B%0A        int%5B%5D arr = %7B2, 5, 10, 4, 3, 1, 6, 8, 7, 9%7D;%0A      %0A        sort(arr);%0A      %0A        for (int item : arr) %7B%0A            System.out.println(item + %22 %22);%0A        %7D%0A    %7D%0A%7D
 %0A

Update BubbleSort.java