HashMap取值

1.存值

	HashMap map = new HashMap();
    	map.put("output", "csv");
    	map.put("key", "abcdef");
    	map.put("q", slat+","+slng);


2.取值

	Iterator iter = map.entrySet().iterator();
        while (iter.hasNext()) {
            Map.Entry entry = (Map.Entry) iter.next();
            Object key = entry.getKey();
            Object val = entry.getValue();
	}


你可能感兴趣的:(HashMap取值)