Skip to content

Commit f0206a6

Browse files
authored
Update README.md
1 parent 2394db6 commit f0206a6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,16 @@
9191
-
9292
### Part 6.1 - Create `People` class
9393
* Create a `People` class.
94-
* The class should instantiate an `ArrayList` field of `Person` objects named `personList`.
94+
* The class should instantiate a `List` field of `Person` objects named `personList`.
9595
* The class should define a method named `add` which adds a `Person` to the `personList`.
9696
* The class should define a method named `findById` which makes use of a `long id` parameter to return a `Person` object with the respective `id` field.
97+
* The class should define a named `contains` which makes use of a `Person person` parameter to return `true` if the `personList` contains the respective `Person` object.
9798
* The class should define a method named `remove` which makes use of a `Person person` parameter to remove a respective `Person` object.
9899
* The class should define a method named `remove` which makes use of a `long id` parameter to remove a `Person` object with the respective `id` field.
99-
* The class should define a method named `getCount` which returns the size of `personList`.
100-
* The class should define a method named `getArray` which returns an array representation of the `personList` field.
101100
* The class should define a named `removeAll` which clears our `personList` field.
101+
* The class should define a method named `count` which returns the size of `personList`.
102+
* The class should define a method named `toArray` which returns an array representation of the `personList` field.
103+
* The class should implement `Iterable<E>` and define a method named `iterator` which makes use of the `personList` field to generate a new a `Iterator<E>`.
102104

103105
-
104106
### Part 6.0 - Test `People`
@@ -141,6 +143,7 @@
141143
* The class should declare a field that references the instance of `Instructors` called `instructors`.
142144
* The class should define a method `hostLecture` which makes use of a `Teacher teacher, double numberOfHours` parameter to host a `lecture` to the composite `personList` field in the `students` reference.
143145
* The class should define a method `hostLecture` which makes use of a `long id, double numberOfHours` parameter to identify a respective `Instructor` to host a `lecture` to the composite `personList` field in the `cohort` reference.
146+
* The class should define a method `getStudyMap` which returns a <u>new instance</u> of a _mapping_ from `Student` objects to `Double` objects, representative of each respective student's `totalStudyTime`.
144147

145148
-
146149
### Part 9.0 - Test `ZipCodeWilmington`

0 commit comments

Comments
 (0)