Check out example codes for "java print treemap". It will help you in understanding the concepts better.

Code Example 1

for (Map.Entry<K, V> entry : myMap.entrySet()) {
     System.out.println("Key: " + entry.getKey() + ". Value: " + entry.getValue());
}

Learn ReactJs, React Native from akashmittal.com