@@ -0,0 +1,671 @@
+package com.fqc.algorithm.sort;%0A%0A/**%0A * Created by fqc on 6/9/16.%0A */%0Apublic class BubbleSort %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        int%5B%5D arrs = %7B1, 3, 5, 2, 4, 6%7D;%0A        int temp = 0; //temp%E4%BD%9C%E4%B8%BA%E4%B8%B4%E6%97%B6%E5%8F%98%E9%87%8F,%E6%96%B9%E4%BE%BF%E5%A4%A7%E6%95%B0%E5%90%91%E5%90%8E%E4%BA%A4%E6%8D%A2%0A%0A        for (int i = 0; i %3C arrs.length - 1; i++) %7B   //arrs.length-1 %E8%A6%81%E6%8E%92%E5%BA%8F%E7%9A%84%E6%AC%A1%E6%95%B0%0A            for (int j = 0; j %3C arrs.length - 1 - i; j++) %7B //%E6%9C%AA%E5%AE%8C%E6%88%90%E6%8E%92%E5%BA%8F%E7%9A%84%E6%AC%A1%E6%95%B0%0A                if (arrs%5Bj%5D %3E arrs%5Bj + 1%5D) %7B%0A                    temp = arrs%5Bj%5D;%0A                    arrs%5Bj%5D = arrs%5Bj + 1%5D;%0A                    arrs%5Bj + 1%5D = temp;%0A                %7D%0A            %7D%0A        %7D%0A%0A        for (int arr : arrs) %7B%0A            System.out.println(arr);%0A        %7D%0A%0A%0A    %7D%0A%7D%0A

add bubble sort