package ru.job4j;

public class Booble {

    public static void main(String[] args) {


        int values[] = {1, 2, 5, 87, 7};

        Booble var = new Booble();
        for (int i = 0; i < values.length; i++)
        {
            int x = var.booble(values);
            System.out.println(values[i]);
        }

    }

    public int[]  booble(int[] values) {

        for (int i = values.length - 1; i > 0; i--) {
            for (int j = 0; j < i; j++) {

                if (values[j] > values[j + 1]) {
                    int tmp = values[j];
                    values[j] = values[j + 1];
                    values[j + 1] = tmp;
                }
            }


        }
        return 0;
    }

}
@@ -42,286 +42,8 @@
 %0A   
- public static void main(String%5B%5D args) %7B%0A%0A%0A        int values%5B%5D = %7B1, 2, 5, 87, 7%7D;%0A%0A        Booble var = new Booble();%0A        for (int i = 0; i %3C values.length; i++)%0A        %7B%0A            int x = var.booble(values);%0A            System.out.println(values%5Bi%5D);%0A        %7D%0A%0A    %7D
 %0A%0A  

add booble.java