@@ -0,0 +1,998 @@
+package com.javarush.task.task07.task0708;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.InputStreamReader;%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0A/* %0A%D0%A1%D0%B0%D0%BC%D0%B0%D1%8F %D0%B4%D0%BB%D0%B8%D0%BD%D0%BD%D0%B0%D1%8F %D1%81%D1%82%D1%80%D0%BE%D0%BA%D0%B0%0A*/%0A%0Apublic class Solution %7B%0A    private static List%3CString%3E strings;%0A%0A    public static void main(String%5B%5D args) throws Exception %7B%0A        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));%0A        strings = new ArrayList%3C%3E();%0A        for (int i = 0; i %3C 5; i++) %7B%0A            strings.add(reader.readLine());%0A        %7D%0A%0A        reader.close();%0A%0A        int longestStringLength = strings.get(0).length();%0A        for (int i = 1; i %3C strings.size(); i++) %7B%0A            if (strings.get(i).length() %3E longestStringLength) %7B%0A                longestStringLength = strings.get(i).length();%0A            %7D%0A        %7D%0A%0A        for (String s :%0A                strings) %7B%0A            if (s.length() == longestStringLength) %7B%0A                System.out.println(s);%0A            %7D%0A        %7D%0A%0A    %7D%0A%7D%0A

Complete task0708