当前位置: 代码迷 >> J2SE >> hashmap的put如何用,小弟我想输入张三,和99两个值
  详细解决方案

hashmap的put如何用,小弟我想输入张三,和99两个值

热度:123   发布时间:2016-04-24 13:11:20.0
hashmap的put怎么用,我想输入张三,和99两个值。
hashmap的put怎么用,我想输入张三,和99两个值。

------解决方案--------------------
如果张三和99当两个值,应该建立两个KEY对应这两个值
put("name","张三");
put("score",new Integer(99));

取得时:
hm.get("name");
hm.get("score");
  相关解决方案