将Map集合的键和值分别取出来方法:
public static List smallMapUtil(Map rsMap){ List temp = new ArrayList(); Iterator iter = rsMap.entrySet().iterator(); while(iter.hasNext()){ Map.Entry entry = (Map.Entry) iter.next(); temp.add(entry.getKey()); } return temp; }