diff --git a/src/main/java/org/example/Administration.java b/src/main/java/org/example/Administration.java index 4e1742d..7e26c08 100644 --- a/src/main/java/org/example/Administration.java +++ b/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; + }