import structure5.*; public class MapTest { public static void main(String[] args) { MapTree m = new MapTree<>(); m.put("Dan", "C"); m.put("Jeannie", "A"); m.put("Bill J", "B"); m.put("Iris", "A"); m.put("Kelly", "A+"); // does it work? System.out.println("Dan got a: " + m.get("Dan")); System.out.println("Iris got a: " + m.get("Iris")); System.out.println("Kelly got a: " + m.get("Kelly")); System.out.println(); // can we remove stuff? System.out.println("Map has " + m.size() + " entries."); m.remove("Bill J"); System.out.println("Map has " + m.size() + " entries."); System.out.println(); // who's left in the map? System.out.println("Map contains the following profs:"); for (String prof : m.keySet()) { System.out.println("\t" + prof); } } }