list.subList(fromIndex, toIndex)
int size = stu.size();//学生个数
Integer peopleNum = pr.getExamPeopleNum();//每个考场中考生个数
for (int i = 0; i < size; i+=peopleNum) {
if(i+peopleNum > size){
peopleNum = size-i;
}
List<ExStuInfoPolo> subList = stu.subList(i,i+peopleNum);
System.out.println(subList);
}