I tried everything, what is wrong?
package com.codegym.task.task08.task0816;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Locale;
import java.util.*;
/*
Kind Emma and the summer holidays
*/
public class Solution {
public static HashMap<String, Date> createMap() throws ParseException {
DateFormat df = new SimpleDateFormat("MMMMM d yyyy", Locale.ENGLISH);
HashMap<String, Date> map = new HashMap<String, Date>();
map.put("Stallone", df.parse("JUNE 1 1980"));
map.put("max", df.parse("JUNE 1 1980"));
map.put("medo", df.parse("JANUARY 1 1980"));
map.put("man", df.parse("MAY 1 1980"));
map.put("momo", df.parse("JULY 1 1980"));
map.put("jojo", df.parse("AUGUST 1 1980"));
map.put("hamo", df.parse("OCTOBER 1 1980"));
map.put("kaka", df.parse("APRIL 1 1980"));
map.put("soo", df.parse("SEPTEMBER 1 1980"));
map.put("mo", df.parse("MARCH 1 1980"));
return map;
}
public static void removeAllSummerPeople(HashMap<String, Date> map) {
//write your code here
HashMap<String, Date> copy = new HashMap<String, Date>(map);
for (Map.Entry<String, Date> pair : copy.entrySet()) {
Date bd = pair.getValue();
if (bd.getMonth() >= 5 && bd.getMonth() >= 7) {
map.remove(pair.getKey());
map.remove(pair.getValue());
}
}
}
public static void main(String[] args) {
}
}