标签:blog code java ext strong html htm http com new file
iterator的hasNext()
和 next()
方法用于enumeration的hasMoreElements()
和 nextElement()
iterator<FILE> it = a.itreator();
Enumeration<File> en = new Enumeration<File>(){
@Override
public boolean hasMoreElements(){
return it.hasNext();
}
@Override
public File nextElement(){
return it.next();
}
}
Iterator和Enumeration,码迷,mamicode.com
标签:blog code java ext strong html htm http com new file
原文地址:http://www.cnblogs.com/judylucky/p/3701455.html