public static final HashMap<String, String> cmap = new HashMap<String,String>(){{
put("上海","330100");
put("杭州","310000");
}
};
Iterator iterator = Constands.cmap.keySet().iterator();
int ij = 0;
String[] cityname = new String[Constands.cmap.size()];
while (iterator.hasNext()) {
String key = (String) iterator.next();
cityname[ij] = key;
ij++;
}