Return the first index of a particular value.
(float what)
| 377 | |
| 378 | /** Return the first index of a particular value. */ |
| 379 | public int index(float what) { |
| 380 | for (int i = 0; i < count; i++) { |
| 381 | if (data[i] == what) { |
| 382 | return i; |
| 383 | } |
| 384 | } |
| 385 | return -1; |
| 386 | } |
| 387 | |
| 388 | |
| 389 | /** |
no outgoing calls
no test coverage detected