So I found source code that presumably parses a mathematical expression and calculates the answer. However, the code contains a syntax error when declaring a new map. This new map is supposed to hold a String and a number. I do know that maps can’t reference primitive types, like double, though. How can I resolve this issue?
private Map<String, double=""> user_var = new HashMap<String, double="">();
To see the rest of the code, one can visit here
Thank you
That’s an incorrect declaration. Correct would be: