Browse Source

Added deleteStudents Method to Administration class

remotes/origin/fdai7780
fdai7887 11 months ago
parent
commit
2712242d1c
  1. 10
      src/main/java/org/example/Administration.java

10
src/main/java/org/example/Administration.java

@ -52,7 +52,15 @@ public class Administration {
admins.add(admin);
}
public boolean deleteStudents(String StudentID){
for(Student student : students){
if(student.getId().equals(StudentID)){
students.remove(student);
return true;
}
}
return false;
}

|||||||
100:0
Loading…
Cancel
Save