我想知道是否有可能預先填充arraylist插槽?例如,可以通過如下賦值操作來填寫st數組:關於arraylists中已定義的插槽
student [] st = new student[3];
st[0] = new student("214365879","eric banner", 67);
st[1] = new student("988634321","tony park",45);
st[2] = new student("009451223","paul summers",59);
但是,如何通過使用arraylist來代替?