Browse Source

Added deleteAdmin Method to Administration Class

remotes/origin/fdai7780
Tobias Herbert 11 months ago
parent
commit
c97d4d7989
  1. 16
      src/main/java/org/example/Administration.java

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

@ -31,6 +31,22 @@ public class Administration {
professors.add(professor); 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;
}

Loading…
Cancel
Save