java dictionary

Java
Map<String, String> dictionary = new HashMap<String, String>();

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

Also in Java: