How do I map a String to a statically defined array of ints? I tried
private static Map<String, int[]> map = new HashMap<String, int[]>();
static {
map.put("foo", {5, 1, 3, 2});
map.put("bar", {2, 7, 8});
}
which tells me that {5, 1, 3, 2} is illegal.