|
@ -507,9 +507,9 @@ public class Administration { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public void enrollStudentInCourseInteractive() { |
|
|
public void enrollStudentInCourseInteractive() { |
|
|
System.out.println("Enter Student ID:"); |
|
|
|
|
|
|
|
|
System.out.print("Enter Student ID:"); |
|
|
String studentId = scanner.nextLine(); // Use nextLine for consistent input handling |
|
|
String studentId = scanner.nextLine(); // Use nextLine for consistent input handling |
|
|
System.out.println("Enter Course ID:"); |
|
|
|
|
|
|
|
|
System.out.print("Enter Course ID:"); |
|
|
String courseId = scanner.nextLine(); |
|
|
String courseId = scanner.nextLine(); |
|
|
|
|
|
|
|
|
boolean enrolled = enrollStudentInCourse(studentId, courseId); |
|
|
boolean enrolled = enrollStudentInCourse(studentId, courseId); |
|
|