|
|
@ -597,6 +597,18 @@ public class Administration { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public void createCourseWithInput(Scanner scanner) { |
|
|
|
System.out.print("Enter Course Name: "); |
|
|
|
String courseName = scanner.next(); |
|
|
|
System.out.print("Enter Course ID: "); |
|
|
|
String courseID = scanner.next(); |
|
|
|
System.out.print("Enter Credits: "); |
|
|
|
int credits = scanner.nextInt(); |
|
|
|
Course newCourse = new Course(courseName, courseID, credits); |
|
|
|
addCourse(newCourse); |
|
|
|
System.out.println("Course created successfully."); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|