摘要:
ArrayList是一种动态数组,其容量可随着我们的需要自动进行扩充.ArrayList位于System.Collections命名空间中,所以我们在使用时,需要导入此命名空间.下面,我们还是在Student类的基础上利用ArrayList操作,从而了解ArrayList的用法View Code public class Student { public Student(){} public Student(String name,int age,String hobby) { ... 阅读全文