@@ -0,0 +1,1100 @@
+package com.javarush.task.task08.task0830;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.InputStreamReader;%0Aimport java.lang.reflect.Array;%0Aimport java.util.Arrays;%0Aimport java.util.Comparator;%0A%0A/* %0A%D0%97%D0%B0%D0%B4%D0%B0%D1%87%D0%B0 %D0%BF%D0%BE %D0%B0%D0%BB%D0%B3%D0%BE%D1%80%D0%B8%D1%82%D0%BC%D0%B0%D0%BC%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        String%5B%5D array = new String%5B20%5D;%0A        for (int i = 0; i %3C array.length; i++) %7B%0A            array%5Bi%5D = reader.readLine();%0A        %7D%0A%0A        sort(array);%0A%0A        for (String x : array) %7B%0A            System.out.println(x);%0A        %7D%0A    %7D%0A%0A    public static void sort(String%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        Arrays.sort(array, new Comparator%3CString%3E() %7B%0A            @Override%0A            public int compare(String o1, String o2) %7B%0A                return isGreaterThan(o1, o2) ? 1 : -1;%0A            %7D%0A        %7D);%0A    %7D%0A%0A    //%D0%9C%D0%B5%D1%82%D0%BE%D0%B4 %D0%B4%D0%BB%D1%8F %D1%81%D1%80%D0%B0%D0%B2%D0%BD%D0%B5%D0%BD%D0%B8%D1%8F %D1%81%D1%82%D1%80%D0%BE%D0%BA: '%D0%B0' %D0%B1%D0%BE%D0%BB%D1%8C%D1%88%D0%B5 %D1%87%D0%B5%D0%BC 'b'%0A    public static boolean isGreaterThan(String a, String b) %7B%0A        return a.compareTo(b) %3E 0;%0A    %7D%0A%7D%0A

Complete task0830