|
|
|
|
83
|
* Create a `Cohort` class.
|
83
|
* Create a `Cohort` class.
|
84
|
* The class should instantiate an `ArrayList` field of `Student` objects named `studentList`.
|
84
|
* The class should instantiate an `ArrayList` field of `Student` objects named `studentList`.
|
85
|
* The class should define a method named `addStudent` which adds a `Student` to the `studentList`.
|
85
|
* The class should define a method named `addStudent` which adds a `Student` to the `studentList`.
|
|
|
86
|
+ * The class should define a method named `findStudentById` which makes use of a `long id` parameter to return a `Student` object with the respective `id` field.
|
86
|
* The class should define a method named `getStudents` which returns an array representation of the `studentList`.
|
87
|
* The class should define a method named `getStudents` which returns an array representation of the `studentList`.
|
87
|
* The class should define a named `removeStudents` which clears our `studentList`.
|
88
|
* The class should define a named `removeStudents` which clears our `studentList`.
|
88
|
|
89
|
|