is this what you looking for?


TreeMap tm = new TreeMap();
tm.put('A', 1);
tm.put('B', 2);
tm.put('C', 3);
tm.put('D', 4);

...