@@ -0,0 +1,1920 @@
+package utils;%0A%0Aimport java.util.stream.IntStream;%0A%0Aimport org.junit.Test;%0A%0Aimport printer.CommandPrinter;%0A%0Apublic class BubbleSort implements CommandPrinter %7B%0A    public int%5B%5D sort(final int%5B%5D arr) %7B%0A        final int arrLen = arr.length;%0A        boolean isLoop = true;%0A        int ai = 0;%0A        while (isLoop) %7B%0A            ai = 0;%0A            for (int i = 0; i %3C arrLen - 1; i++) %7B%0A                if (arr%5Bi + 1%5D %3C arr%5Bi%5D) %7B%0A                    final int tmp = arr%5Bi + 1%5D;%0A                    arr%5Bi + 1%5D = arr%5Bi%5D;%0A                    arr%5Bi%5D = tmp;%0A                %7D else %7B%0A                    ai++;%0A                %7D%0A                if (ai == arrLen - 1) %7B%0A                    isLoop = false;%0A                %7D%0A            %7D%0A        %7D%0A        return arr;%0A    %7D%0A%0A    @Test%0A    public void test_sort() %7B%0A        logger(() -%3E %7B%0A            lnLine(%22%5Bafter%5D%22);%0A            logger(sort(logger(() -%3E %7B%0A                int%5B%5D test = new int%5B100%5D;%0A                lnLine(%22%5Bbefore%5D%22);%0A                IntStream.range(0, 100).forEach(i -%3E %7B%0A                    if (i %25 15 == 0)%0A                        test%5Bi%5D = r(15, i, 3);%0A                        else if (i %25 3 == 0)%0A                            test%5Bi%5D = r(3, i, 10);%0A                        else if (i %25 5 == 0)%0A                            test%5Bi%5D = r(5, i, 7);%0A                        else%0A                            test%5Bi%5D = r(1, i, 2);%0A                    %7D);%0A                logger(test);%0A                return test;%0A            %7D)));%0A            return null;%0A        %7D);%0A    %7D%0A%0A    private static int r(int a, int b, int c) %7B%0A        return Math.abs((int) (Math.random() * 10 * a * b - b) %3C%3C c);%0A    %7D%0A%0A    @FunctionalInterface%0A    private interface Log %7B%0A        int%5B%5D logger();%0A    %7D%0A%0A    private int%5B%5D logger(Log l) %7B%0A        return l.logger();%0A    %7D%0A%0A    private void logger(int%5B%5D test) %7B%0A        for (final int t : test) %7B%0A            ln(t);%0A        %7D%0A    %7D%0A%7D%0A

Create BubbleSort.java