最佳答案
HashMap<String, int>
doesn't seem to work but HashMap<String, Integer>
does work.
Any ideas why?