@@ -0,0 +1,977 @@
+package com.javarush.task.task07.task0728;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.InputStreamReader;%0A%0A/* %0A%D0%92 %D1%83%D0%B1%D1%8B%D0%B2%D0%B0%D1%8E%D1%89%D0%B5%D0%BC %D0%BF%D0%BE%D1%80%D1%8F%D0%B4%D0%BA%D0%B5%0A*/%0A%0Apublic class Solution %7B%0A    public static void main(String%5B%5D args) throws Exception %7B%0A        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));%0A        int%5B%5D array = new int%5B20%5D;%0A        for (int i = 0; i %3C 20; i++) %7B%0A            array%5Bi%5D = Integer.parseInt(reader.readLine());%0A        %7D%0A%0A        reader.close();%0A        sort(array);%0A%0A        for (int x : array) %7B%0A            System.out.println(x);%0A        %7D%0A    %7D%0A%0A    public static void sort(int%5B%5D array) %7B%0A%0A        int temp = 0;%0A        for (int i = 0; i %3C array.length; i++) %7B%0A            for (int j = 1; j %3C (array.length - i); j++) %7B%0A                if (array%5Bj - 1%5D %3C array%5Bj%5D) %7B%0A                    temp = array%5Bj - 1%5D;%0A                    array%5Bj - 1%5D = array%5Bj%5D;%0A                    array%5Bj%5D = temp;%0A                %7D%0A            %7D%0A        %7D%0A    %7D%0A%7D%0A

Complete task0728