君子攸宁

导航

2017年7月17日 #

123

摘要: package com.runoob.test; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; public class IteratorDemo { public static void main(String[] args) { //创建集合 ... 阅读全文

posted @ 2017-07-17 18:51 君子攸宁 阅读(118) 评论(0) 推荐(0)

java集合框架初探-迭代器

摘要: package com.runoob.test; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; public class IteratorDemo { public static void main(String[] args) { //创建集合 ... 阅读全文

posted @ 2017-07-17 18:50 君子攸宁 阅读(79) 评论(0) 推荐(0)

java集合框架初探

摘要: Collection接口中的共性功能1.添加 boolean add(object obj);一次添加一个 boolean addAll(Collection);将指定容器中的所有元素添加 2.删除 void clear(); boolean removbe(object o); boolean r 阅读全文

posted @ 2017-07-17 18:49 君子攸宁 阅读(108) 评论(0) 推荐(0)