Check if a number is a part of the data structure. @webref intlist:method @webBrief Check if a number is a part of the list
(int value)
| 397 | * @webBrief Check if a number is a part of the list |
| 398 | */ |
| 399 | public boolean hasValue(int value) { |
| 400 | for (int i = 0; i < count; i++) { |
| 401 | if (data[i] == value) { |
| 402 | return true; |
| 403 | } |
| 404 | } |
| 405 | return false; |
| 406 | } |
| 407 | |
| 408 | |
| 409 | /** |
no outgoing calls
no test coverage detected