集合框架Iterator

Collection a= new ArrayList();//建立Collectiond對象 a.add();//調用方法 Iterator接口迭代器的用法:實現Iterator接口的類會實現三個方法hasNest();next();remove();html public static void main(String[] args){ Collection c=new Has
相關文章
相關標籤/搜索