关于Iterator的remove()方法
摘要:
今天看到,java的NIO里面的SelectionKey,处理完key后,调用keyIterator.remove();对Iterator的remove()方法不是很熟悉,小测试了下,代码如下: [代码] System.out.println("////////////////////////");it=list.iterator();while(it.hasNext()){ System.out... 阅读全文
posted @ 2010-02-23 21:35 ethanchan 阅读(16784) 评论(1) 推荐(5) 编辑