import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;
public class Main {
public static void main(String[] a) {
Map yourMap = new HashMap();
yourMap.put("1", "one");
yourMap.put("2", "two");
yourMap.put("3", "three");
Map sortedMap = new TreeMap(yourMap);
System.out.println(sortedMap);
}
}
//{1=one, 2=two, 3=three}