public String addStudentToClass() throws Exception {
        InputStreamReader in = new InputStreamReader(System.in);
        BufferedReader keyboard = new BufferedReader(in);
        DBConnector db = new DBConnector();
       
        System.out.println("Adding a Student to a course.");
        System.out.print("Student ID: ");
        int studentID = Integer.parseInt(keyboard.readLine());
        System.out.print("Course ID: ");
        int courseID = Integer.parseInt(keyboard.readLine());
        try {
            db.enrollStudentInCourse(studentID, courseID);
            return "Student Added";
        } catch (Exception e) {
            return e.getMessage();
        }
    }