Compeleted the Student class (and Bonus).
This commit is contained in:
@@ -10,14 +10,7 @@ public class RegistrationSystem {
|
||||
}
|
||||
|
||||
public void addCourseToSystem(Course c) {
|
||||
Scanner scanner = new Scanner(System.in);
|
||||
|
||||
String courseName = scanner.next();
|
||||
String courseCode = scanner.next();
|
||||
int capacity = scanner.nextInt();
|
||||
|
||||
Course newCourse = new Course(courseName, courseCode, capacity);
|
||||
courses.add(newCourse);
|
||||
courses.add(c);
|
||||
}
|
||||
|
||||
public Course findCourseByCode(String code) {
|
||||
|
||||
Reference in New Issue
Block a user