|
|
|
|
18
|
|
18
|
|
19
|
|
19
|
|
20
|
<br><br><br><br>
|
20
|
<br><br><br><br>
|
21
|
-## Sample Behavior<br> `removeValues(array, valueToRemove)`
|
|
|
|
|
21
|
+## `removeValues(array, valueToRemove)`
|
22
|
* **Description**
|
22
|
* **Description**
|
23
|
* Given an array of `String` objects named `array` and a `String` object named `valueToRemove`<br>create and return an array containing identical contents excluding objects whose value is equivalent to `valueToRemove`. Ensure that the length of the newly created array has been resized based on the removal of the undesired elements.
|
23
|
* Given an array of `String` objects named `array` and a `String` object named `valueToRemove`<br>create and return an array containing identical contents excluding objects whose value is equivalent to `valueToRemove`. Ensure that the length of the newly created array has been resized based on the removal of the undesired elements.
|
24
|
|
24
|
|
|
|
|
|
104
|
|
104
|
|
105
|
|
105
|
|
106
|
<br><br><br><br>
|
106
|
<br><br><br><br>
|
107
|
-## Sample Behavior<br> `getNumberOfOccurrences(array, value)`
|
|
|
|
|
107
|
+## `getNumberOfOccurrences(array, value)`
|
108
|
* **Description**
|
108
|
* **Description**
|
109
|
* Given an array of `String` objects named `array` and a `String` object named `value`<br>return the number of times `value` appears in `arrays`
|
109
|
* Given an array of `String` objects named `array` and a `String` object named `value`<br>return the number of times `value` appears in `arrays`
|
110
|
|
110
|
|
|
|
|
|
195
|
|
195
|
|
196
|
|
196
|
|
197
|
<br><br><br><br>
|
197
|
<br><br><br><br>
|
198
|
-## Sample Behavior<br> `contains(array, value)`
|
|
|
|
|
198
|
+## `contains(array, value)`
|
199
|
* **Description**
|
199
|
* **Description**
|
200
|
* Given an array of `String` objects named `array` and a `String` object named `value`<br>return true if `value` appears in `arrays`.
|
200
|
* Given an array of `String` objects named `array` and a `String` object named `value`<br>return true if `value` appears in `arrays`.
|
201
|
### Example 1
|
201
|
### Example 1
|