|
|
|
|
5
|
* **Purpose**
|
5
|
* **Purpose**
|
6
|
* To demonstrate practical understanding of arrays, loops, and basic composition.
|
6
|
* To demonstrate practical understanding of arrays, loops, and basic composition.
|
7
|
* **Instructions**
|
7
|
* **Instructions**
|
|
|
8
|
+ * The `IntegerDuplicateDeleter` and `StringDuplicateDeleter` both inherit from the abstract class `DuplicateDeleter`. The `DuplicateDeleter` class has two required methods that the IntegerDuplicateDeleter and StringDuplicateDeleter need to implement. You need to add the two methods into the two classes and add a constructor to call the `DuplicateDeleter` method to make your code compile.
|
8
|
* Given an object, `IntegerDuplicateDeleter`, with a composite `Integer[]` object, write a method
|
9
|
* Given an object, `IntegerDuplicateDeleter`, with a composite `Integer[]` object, write a method
|
9
|
* `removeDuplicatesExactly` which removes all values in the array which occur exactly the specified number of times.
|
10
|
* `removeDuplicatesExactly` which removes all values in the array which occur exactly the specified number of times.
|
10
|
* `removeDuplicates` which removes all values in the array which occur at least the specified number of times.
|
11
|
* `removeDuplicates` which removes all values in the array which occur at least the specified number of times.
|