diff --git a/src/main/java/org/example/Administration.java b/src/main/java/org/example/Administration.java index d7cd3bf..1c00bc8 100644 --- a/src/main/java/org/example/Administration.java +++ b/src/main/java/org/example/Administration.java @@ -49,6 +49,18 @@ public class Administration { admins.add(admin); } + public Professor findProfessorById(String professorId) + { + for(Professor professor :professors) + { + if(professor.getProfessorID().equals(professorId)) + { + return professor; + } + } + + return null; + }