集合类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
posted @ 2016-04-27 14:16
posted @ 2016-04-26 17:39
posted @ 2016-04-09 22:26