SortedMapIn this example, we create a SortedMap of players with their corresponding ages. We add three players and their ages to the map using the put method. We then print out the keys and values of the map using the keyset and values methods. The SortedMap interface is part of the java.util package library.players = new TreeMap<>(); players.put("John", 15); players.put("Alex", 20); players.put("Lisa", 18); System.out.println(players.keySet()); System.out.println(players.values());