(int value)
| 241 | // Remove the first instance of a particular value, |
| 242 | // and return the index at which it was found. |
| 243 | public int removeValue(int value) { |
| 244 | int index = index(value); |
| 245 | if (index != -1) { |
| 246 | remove(index); |
| 247 | return index; |
| 248 | } |
| 249 | return -1; |
| 250 | } |
| 251 | |
| 252 | |
| 253 | // Remove all instances of a particular value, |
no test coverage detected