@@ -0,0 +1,1851 @@
+package com.javarush.task.task08.task0816;%0A%0Aimport java.util.Date;%0Aimport java.util.HashMap;%0Aimport java.util.Iterator;%0Aimport java.util.Map;%0A%0A/* %0A%D0%94%D0%BE%D0%B1%D1%80%D0%B0%D1%8F %D0%97%D0%B8%D0%BD%D0%B0%D0%B8%D0%B4%D0%B0 %D0%B8 %D0%BB%D0%B5%D1%82%D0%BD%D0%B8%D0%B5 %D0%BA%D0%B0%D0%BD%D0%B8%D0%BA%D1%83%D0%BB%D1%8B%0A*/%0A%0Apublic class Solution %7B%0A%0A    public static HashMap%3CString, Date%3E createMap() %7B%0A%0A        HashMap%3CString, Date%3E map = new HashMap%3CString, Date%3E();%0A%0A        map.put(%22Stallone%22, new Date(%22JUNE 1 1980%22)); // 1%0A        map.put(%22Olollone%22, new Date(%22JULY 2 1990%22)); // 2%0A        map.put(%22Balkone%22, new Date(%22NOVEMBER 4 1981%22)); // 3%0A        map.put(%22Danone%22, new Date(%22JANUARY 5 2001%22)); // 4%0A        map.put(%22Antone%22, new Date(%22FEBRUARY 20 2003%22)); // 5%0A        map.put(%22Pitone%22, new Date(%22APRIL 3 1995%22)); // 6%0A        map.put(%22Kokokone%22, new Date(%22AUGUST 31 2002%22)); // 7%0A        map.put(%22Valerone%22, new Date(%22JUNE 4 1984%22)); // 8%0A        map.put(%22Iphone%22, new Date(%22JANUARY 9 2007%22)); // 9%0A        map.put(%22Zoebal%22, new Date(%22SEPTEMBER 21 2017%22)); // 10%0A%0A        return map;%0A    %7D%0A%0A    public static void removeAllSummerPeople(HashMap%3CString, Date%3E map) %7B%0A        // %D0%A7%D0%9E%D0%9C%D0%A3 %D0%A2%D0%AB LAMBDA %D0%9D%D0%95 %D0%96%D0%A0%D0%81%D0%A8%D0%AC %D0%9F%D0%90%D0%A1%D0%9A%D0%A3%D0%94%D0%90????%0A        // map.values().removeIf(d -%3E d.getMonth() %3E 4 && d.getMonth() %3C 8);%0A%0A%0A        for (Iterator iterator = map.entrySet().iterator(); iterator.hasNext();) %7B%0A            HashMap.Entry pair = (HashMap.Entry) iterator.next();%0A            if (((Date)pair.getValue()).getMonth() %3E 4 && ((Date)pair.getValue()).getMonth() %3C 8) %7B%0A                iterator.remove();%0A            %7D%0A        %7D%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A        /*%0A        HashMap%3CString, Date%3E map = new HashMap%3C%3E();%0A        map = createMap();%0A        map.forEach((k, v) -%3E System.out.println(%22k: %22 + k + %22, v: %22 + v));%0A        System.out.println();%0A        removeAllSummerPeople(map);%0A        map.forEach((k, v) -%3E System.out.println(%22k: %22 + k + %22, v: %22 + v));%0A        */%0A    %7D%0A%7D%0A

Complete task0816