8亮8仔8

2016年4月27日

集合类List,set,Map 的遍历方法,用法和区别

摘要: 遍历list: 方法一: for(String s:lists){ System.out.println(s); } 方法二: System.out.println("list with iterator"); Iterator it = lists.iterator(); // 获得一个迭代子 w 阅读全文

posted @ 2016-04-27 14:16 8亮8仔8 阅读(176) 评论(0) 推荐(0) 编辑

导航