Also why is it at the bottom when it is usually at the top?
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;
/*
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>();
//createMap() method must create and return a HashMap that has (String, Date) elements and contains 10 entries
map.put("Stallone", df.parse("JUNE 1 1980"));
map.put("jack", df.parse("MAY 2 1234"));
map.put("jack1", df.parse("MAY 3 1234"));
map.put("jack2", df.parse("MAY 21 1234"));
map.put("jack3", df.parse("MAY 22 1234"));
map.put("jack4", df.parse("MAY 22 1234"));
map.put("jack5", df.parse("MAY 24 1234"));
map.put("jack6", df.parse("MAY 20 1234"));
map.put("jack7", df.parse("MAY 20 1234"));
map.put("jack8", df.parse("MAY 2 1234"));
return map;
}
public static void removeAllSummerPeople(HashMap<String, Date> map) {
if (map.containsKey(MAY || JUNE || JULY || AUGUST))
{
map.remove();
}
}
}
public static void main(String[] args) {
removeAllSummerPeople(map);
}
}