Map转成List的办法

/*Map转成List的办法*/
List<Map.Entry<Student, String>> list = new ArrayList<Map.Entry<Student, String>>(classTreeMap.entrySet());

for(Entry ent: list){
  System.out.println(ent.getKey());
  System.out.println(ent.getValue());
}

posted @ 2016-05-05 22:33  安仔80  阅读(2452)  评论(0编辑  收藏  举报