摘要:
import java.util.ArrayList;import java.util.Collection;import java.util.Iterator;public class ListTest { public static void main(String[] args) { Collection col = new ArrayList(); //集合只能存储引用数据类型,那这里为什么可以存基本数据类型,因为集合在此处将基本数据类型自动装箱 col.add(1); col.add(2); col.add(3); col.add(5); //集合引用调用自己的迭代器... 阅读全文
posted @ 2014-03-05 16:48
lxricecream
阅读(833)
评论(0)
推荐(0)
浙公网安备 33010602011771号