In short, if you want to write a map of e.g. constants in Java, which in e.g. Python and Javascript you would write as a literal,
T CON
Here's another way, best suited for maps that won't be changing:
public class Whatever { private static Map map = new HashMap(); static { map.put("A", "Apple"); map.put("B", "Banana"); // etc } }