Implement WS-02
This commit is contained in:
@@ -10,5 +10,17 @@ public class Main {
|
||||
// 5. Register the student in some courses
|
||||
// 6. Drop one course
|
||||
// 7. Print the final registered course list
|
||||
Course c1 = new Course("Python for beginners", "41842373", 10);
|
||||
Course c2 = new Course("Advanced Python", "42842335", 22);
|
||||
Course c3 = new Course("Java for beginners", "17289682", 7);
|
||||
Student s1 = new Student("Barbod", "9341264180");
|
||||
RegistrationSystem r1 = new RegistrationSystem();
|
||||
r1.addCourseToSystem(c1);
|
||||
r1.addCourseToSystem(c2);
|
||||
r1.addCourseToSystem(c3);
|
||||
s1.addCourse(c1);
|
||||
s1.addCourse(c3);
|
||||
s1.dropCourse(c1);
|
||||
s1.showRegisteredCourses();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user