Browse Source

Added deleteProfessor Method to Administration Class

remotes/origin/fdai7780
Tobias Herbert 11 months ago
parent
commit
4fda5fa62e
  1. 15
      src/main/java/org/example/Administration.java

15
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;
}
} }
Loading…
Cancel
Save