// In Java collections, the TreeMap is a sorted and navigable map that organizes elements // in a self-balancing binary tree. import java.util.TreeMap; public class TreeMapExample { public static void main(String[] args) { TreeMap students = new TreeMap(); //Add Key/Value pairs students.put("Edward", 47); students.put("Alice", 34); students.put("Sheila", 65); students.put("Bob", 44); //Iterate over HashMap for(String key: students.keySet()){ System.out.println(key +" :: "+ students.get(key)); } } }