Check out example codes for "how to make a dictionary in java". It will help you in understanding the concepts better.

Code Example 1

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

Code Example 2

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

dictionary.put("key", "value");
String value = dictionary.get("key");

Learn ReactJs, React Native from akashmittal.com