Browse Source

Added findProfessorById Method to Administration Class

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

12
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;
}

Loading…
Cancel
Save