That the get method is not parameterized with a common parameter is the result.
You can also do
m.get(1L);
Parameterized method is placed
m.put(new String(), 0.0); //Fail //The method put(Character, Double) in the type Map<Character,Double> is not applicable for the arguments (String, double) m.put(new Character('c'), 0.0); //Ok
source share