Enumeration接口的用法
摘要:
Enumeration接口也在java.util包中 它的功能与Iterator差不多 都是用来遍历集合中的元素 但是枚举Enumeration只提供了遍历Vector和Hashtable类型集合元素的功能 这种类型的集合对象通过调用elements()方法获取一个Enumeration对象 然后E... 阅读全文
posted @ 2015-06-30 17:32 linyuhuan 阅读(777) 评论(0) 推荐(0) 编辑