|
@ -30,6 +30,16 @@ public class Administration { |
|
|
courses.add(course); |
|
|
courses.add(course); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public boolean deleteCourse(String courseID){ |
|
|
|
|
|
for(Course course : courses){ |
|
|
|
|
|
if(course.getCourseCode().equals(courseID)){ |
|
|
|
|
|
courses.remove(course); |
|
|
|
|
|
return true; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* |
|
|
* |
|
|
* @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 |
|
|