2011年2月24日

遍历Map

摘要: for (Map.Entry<String, String> entry : params.entrySet()) { // System.out.println(entry.getKey()+","+ entry.getValue()); conn.setRequestProperty(entry.getKey(), entry.getValue());}方法1: Map map = new HashMap(); map.put("a", "1"); map.put("b", "2" 阅读全文

posted @ 2011-02-24 09:31 陆晓峰 阅读(396) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示