|
@ -586,6 +586,16 @@ public class Administration { |
|
|
System.out.println("Student with ID " + studentId + " not found."); |
|
|
System.out.println("Student with ID " + studentId + " not found."); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
public void deleteCourseWithInput(Scanner scanner) { |
|
|
|
|
|
System.out.print("Enter the Course ID of the course you wish to delete: "); |
|
|
|
|
|
String courseIDToDelete = scanner.next(); |
|
|
|
|
|
boolean isDeleted = deleteCourse(courseIDToDelete); |
|
|
|
|
|
if (isDeleted) { |
|
|
|
|
|
System.out.println("Course with ID " + courseIDToDelete + " has been successfully deleted."); |
|
|
|
|
|
} else { |
|
|
|
|
|
System.out.println("Course with ID " + courseIDToDelete + " not found."); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|