I'm wondering if it's possible to prefill the slots for an arraylist? For example, it is possible to fill out the st array by the assignment operation like this:
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);
But how is it possible by using arraylist instead?