摘要: 你是否已经厌倦了每次写for循环时都要写上那些机械的代码,尤其当你需要遍历数组或者Collection,如: public void showAll (Collection c) { for (Iterator iter = c.iterator(); iter.hasNext(); ) { System.out.println(iter.next().toString()); ... 阅读全文
posted @ 2008-11-04 10:16 不待人亲灬 阅读(210) 评论(0) 推荐(0) 编辑