diff --git a/src/main/java/org/example/Administration.java b/src/main/java/org/example/Administration.java index a2f4326..36c81c2 100644 --- a/src/main/java/org/example/Administration.java +++ b/src/main/java/org/example/Administration.java @@ -31,6 +31,22 @@ public class Administration { professors.add(professor); } + public boolean deleteAdmin(String AdminID) + { + for(Admin admin : admins ) + { + if(admin.getId().equals(AdminID)){ + professors.remove(admin); + return true; //Course found and removed + } + } + + return false; + } + + + +