摘要:
Map的一般用法1.声明一个Map :Map map = new HashMap();2 .向map中放值 ,注意: map是key-value的形式存放的,如:map.put("sa","dd");3 .从map中取值 :String str = map.get("sa").toString();... 阅读全文
posted @ 2015-10-08 17:03 shenyixin 阅读(402) 评论(0) 推荐(0)
|
||
|
摘要:
Map的一般用法1.声明一个Map :Map map = new HashMap();2 .向map中放值 ,注意: map是key-value的形式存放的,如:map.put("sa","dd");3 .从map中取值 :String str = map.get("sa").toString();... 阅读全文
posted @ 2015-10-08 17:03 shenyixin 阅读(402) 评论(0) 推荐(0) |
||