1Map<String, String> dictionary = new HashMap<String, String>();
2
3dictionary.put("key", "value");
4String value = dictionary.get("key");
1Map<String, String> map = new HashMap<String, String>();
2map.put("dog", "type of animal");
3System.out.println(map.get("dog"));