diff --git a/src/main/java/org/example/Main.java b/src/main/java/org/example/Main.java index f914439..49a7587 100644 --- a/src/main/java/org/example/Main.java +++ b/src/main/java/org/example/Main.java @@ -63,6 +63,14 @@ public class Main { break; case 7: // Delete Course + System.out.println("Enter the Course ID of the course you wish to delete:"); + String courseIDToDelete = scanner.next(); + boolean isDeleted = administration.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."); + } break; case 8: // View Courses