|
@ -40,6 +40,15 @@ public class Administration { |
|
|
return false; |
|
|
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 |
|
|
* @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 |
|
|
* @param adminID the id of the admin you want to be deleted from the system |
|
|