public class TestMyHashMap {
public static void main(String[] args) {
MyMap<String, Integer> map = new MyHashMap<>();
map.put("Perez", 30);
map.put("Anderson", 31);
map.put("Lewis", 29);
map.put("Cook", 29);
map.put("Perez", 65);
System.out.println("Entries in map: " + map);
System.out.println("The age for " + "Lewis is " +
map.get("Lewis"));
System.out.println("Is Perez in the map? " +
map.containsKey("Perez"));
System.out.println("Is age 33 in the map? " +
map.containsValue(33));
map.remove("Smith");
System.out.println("Entries in map: " + map);
map.clear();
System.out.println("Entries in map: " + map);
}
}