@@ -0,0 +1,890 @@
+/**%0A * Company%0A * Copyright (C) 2014-2017 All Rights Reserved.%0A */%0Apackage com.cwenao.datastructure;%0A%0A/**%0A * bubble sort%0A * @author cwenao%0A * @version $Id BubbleSort.java, v 0.1 2017-07-02 13:27 cwenao Exp $$%0A */%0Apublic class BubbleSort %7B%0A%0A    private static void bubbleSortByDesc(int%5B%5D arrays) %7B%0A        int len = arrays.length;%0A        for (int i = 0; i %3C len; i++) %7B%0A            for(int x =0 ;x%3Clen;x ++) %7B%0A                if ((x != len-1) && arrays%5Bx%5D %3E arrays%5Bx + 1%5D) %7B%0A                    int tmp = arrays%5Bx%5D;%0A                    arrays%5Bx%5D = arrays%5Bx + 1%5D;%0A                    arrays%5Bx + 1%5D = tmp;%0A                %7D%0A            %7D%0A        %7D%0A%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A        int%5B%5D arrays = %7B0, 100, 99, 105, 6, 1, 5, 4, 5, 22, 30, 45%7D;%0A        bubbleSortByDesc(arrays);%0A%0A        for (int x : arrays) %7B%0A            System.out.println(x);%0A        %7D%0A%0A    %7D%0A%0A%7D%0A%0A

add the bubble sort