集合框架Iterator

Collection a= new ArrayList();//建立Collectiond对象 a.add();//调用方法 Iterator接口迭代器的用法:实现Iterator接口的类会实现三个方法hasNest();next();remove();html public static void main(String[] args){ Collection c=new Has
相关文章
相关标签/搜索