i can't understand why show me this error please guide mee
cannot find symbol
symbol: constructor ()
cannot infer type arguments for HashMap<K,V>
reason: cannot use '<>' with anonymous inner classes
where K,V are type-variables:
K extends Object declared in class HashMap
V extends Object declared in class HashMap
static final Map<String, Color> COLOR_MAP = new HashMap<>() { { put("none", new Color(0, 0, 0, 255)); put("blue", new Color(0, 0, 255, 255)); put("green", new Color(0, 255, 0, 255)); put("orange", new Color(255, 128, 0, 255)); put("pink", new Color(255, 0, 128, 255)); put("purple", new Color(255, 0, 255, 255)); put("red", new Color(255, 0, 0, 255)); put("white", new Color(255, 255, 255, 255)); put("yellow", new Color(255, 255, 0, 255)); } };