@ -146,5 +146,9 @@ public class Course {
return courses;
}
public static void addCourse(String courseName, String courseCode, int courseCredit, String filename) {
// Write course data to the file
Course course = new Course();
course.writeToFile(courseName, courseCode, courseCredit, filename);