制作完成于2018年5月10日 使用JDK 8
集合存储自定义类的类型数据
集合存储ArrayList自定义类的类型数据Student
遍历的时候因为里面都是student类型,所以:
for(student temp:al){}
1-集合里面可以存储任意类型,比如引用类型对象 ,甚至可以存储集合类型
集合可以存储自定义数据类型,
泛型到自己定义的类,
ArrayList <Student>= new ArrayList<Studeng> s