Browse Source

Adding findCourseByID method in Administration class

remotes/origin/fdai7780
fdai7921 11 months ago
parent
commit
85e0713fd9
  1. 11
      src/main/java/org/example/Administration.java

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

@ -40,6 +40,15 @@ public class Administration {
return false;
}
public Course findCourseByID(String courseID){
for(Course course : courses){
if(course.getCourseCode().equals(courseID)){
return course;
}
}
return null;
}
/**
*
* @param professorID the id of the professor you want to be deleted from the system
@ -86,8 +95,6 @@ public class Administration {
}
/**
*
* @param adminID the id of the admin you want to be deleted from the system

Loading…
Cancel
Save