@@ -0,0 +1,1122 @@
+package com.javarush.task.task08.task0826;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.InputStreamReader;%0A%0A/* %0A%D0%9F%D1%8F%D1%82%D1%8C %D0%BF%D0%BE%D0%B1%D0%B5%D0%B4%D0%B8%D1%82%D0%B5%D0%BB%D0%B5%D0%B9%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 array.length; i++) %7B%0A            array%5Bi%5D = Integer.parseInt(reader.readLine());%0A        %7D%0A        reader.close();%0A        sort(array);%0A%0A        System.out.println(array%5B0%5D);%0A        System.out.println(array%5B1%5D);%0A        System.out.println(array%5B2%5D);%0A        System.out.println(array%5B3%5D);%0A        System.out.println(array%5B4%5D);%0A    %7D%0A%0A    public static void sort(int%5B%5D array) %7B%0A        //%D0%BD%D0%B0%D0%BF%D0%B8%D1%88%D0%B8%D1%82%D0%B5 %D1%82%D1%83%D1%82 %D0%B2%D0%B0%D1%88 %D0%BA%D0%BE%D0%B4%0A        int temp;%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%5D %3E array%5Bj - 1%5D) %7B%0A                    temp = array%5Bj%5D;%0A                    array%5Bj%5D = array%5Bj - 1%5D;%0A                    array%5Bj - 1%5D = temp;%0A                %7D%0A            %7D%0A        %7D%0A    %7D%0A%7D%0A

Complete teask0826