1.完成了删除学生信息

//删除一名学生信息
static void deleteStudent(ArrayList<Student> array){
Scanner scanner=new Scanner(System.in);
String id;
while(true) {
boolean flag=false;
System.out.println("请输入要删除的学生学号: ");
id=scanner.nextLine();
for(int i=0;i<array.size();i++) {
Student student=array.get(i);
if(student.getStunumber().equals(id))
{
array.remove(i);
System.out.println("删除成功 ");
flag=true;
break;
}
}
if(flag) {
break;
}
else {
System.out.println("未查询到,请重新输入: ");
break;
}
}
}

2.BUG修改完成

3.明天继续完成程序