添加知识点:

集合对象存放的是一系列对象的引用。

例:

Student S

Al.add(s);

s.setName(“lucy”);

Student s2=(Student)(al.get(o1));

可知s2也是s

相关文章:

  • 2022-12-23
  • 2021-10-18
  • 2021-07-16
  • 2022-01-10
  • 2021-12-15
  • 2022-12-23
  • 2021-12-20
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-30
  • 2021-11-12
  • 2021-06-27
  • 2021-10-04
  • 2022-12-23
相关资源
相似解决方案