public class JavaStudentDemo {
public static void main(String[] args) {
ArrayList<ArrayList<Student>> arrayLists = new ArrayList<>();
List<Student> l1 = new ArrayList<>();
List<Student> l2 = new ArrayList<>();
List<Student> l3 = new ArrayList<>();
Student s1 = new Student("王贺",20);
Student s2 = new Student("刘贺",21);
Student s3 = new Student("李贺",22);
Student s4 = new Student("王尼玛",23);
Student s5 = new Student("黄某",24);
Student s6 = new Student("张某",25);
Student s7 = new Student("泰某",59);
Student s8 = new Student("刘谋",90);
Student s9 = new Student("王五",77);
Student s10 = new Student("张三",36);
Student s11 = new Student("李四",21);
Student s12 = new Student("刘六",22);
l1.add(s1);
l1.add(s2);
l1.add(s3);
l1.add(s4);
l2.add(s5);
l2.add(s6);
l2.add(s7);
l2.add(s8);
l3.add(s9);
l3.add(s10);
l3.add(s11);
l3.add(s12);
arrayLists.add((ArrayList<Student>)l1);
arrayLists.add((ArrayList<Student>)l2);
arrayLists.add((ArrayList<Student>)l3);
for (ArrayList<Student> arrayList: arrayLists){
System.out.println(arrayList);
}