@@ -0,0 +1,1146 @@
+package com.javarush.task.task07.task0712;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.IOException;%0Aimport java.io.InputStreamReader;%0Aimport java.util.ArrayList;%0A%0A/* %0A%D0%A1%D0%B0%D0%BC%D1%8B%D0%B5-%D1%81%D0%B0%D0%BC%D1%8B%D0%B5%0A*/%0A%0Apublic class Solution %7B%0A    public static void main(String%5B%5D args) throws Exception %7B%0A        ArrayList%3CString%3E strings = new ArrayList%3C%3E();%0A        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));%0A        for (int i = 0; i %3C 10; i++) %7B%0A            strings.add(reader.readLine());%0A        %7D%0A%0A        int minStringLength = strings.get(0).length(), maxStringLength = strings.get(0).length();%0A        for (int i = 1; i %3C strings.size(); i++) %7B%0A            if (strings.get(i).length() %3C minStringLength) %7B%0A                minStringLength = strings.get(i).length();%0A            %7D%0A            if (strings.get(i).length() %3E maxStringLength) %7B%0A                maxStringLength = strings.get(i).length();%0A            %7D%0A        %7D%0A%0A        for (String s : strings) %7B%0A            if (s.length() == minStringLength %7C%7C s.length() == maxStringLength) %7B%0A                System.out.println(s);%0A                break;%0A            %7D%0A        %7D%0A    %7D%0A%7D%0A

Complete task0712