【发布时间】:2011-04-08 03:01:53
【问题描述】:
HashMap savedStuff = new HashMap();
savedStuff.put("symbol", this.symbol); //this is a string
savedStuff.put("index", this.index); //this is an int
给我警告:
HashMap is a raw type. References to generic type HashMap<K,V> should be parameterized
【问题讨论】:
-
apache commons Multivalue map 可以解决你的问题!
标签: java data-structures map hashmap key-value