添加知識點:對象
集合對象存放的是一系列對象的引用。get
例:引用
Student S集合
Al.add(s);
s.setName(「lucy」);
Student s2=(Student)(al.get(o1));
可知s2也是s。