diff --git a/src/main/java/org/example/Administration.java b/src/main/java/org/example/Administration.java index 225f12a..c92897d 100644 --- a/src/main/java/org/example/Administration.java +++ b/src/main/java/org/example/Administration.java @@ -14,6 +14,21 @@ public class Administration { } + public boolean deleteProfessor(String professorID) + { + for(Professor professor : professors) + { + if(professor.getProfessorID().equals(professorID)){ + professors.remove(professor); + return true; //Course found and removed + } + } + + return false; + } + + + }