Return the smallest value. @webref intlist:method @webBrief Return the smallest value
()
| 501 | * @webBrief Return the smallest value |
| 502 | */ |
| 503 | public int min() { |
| 504 | checkMinMax("min"); |
| 505 | int outgoing = data[0]; |
| 506 | for (int i = 1; i < count; i++) { |
| 507 | if (data[i] < outgoing) outgoing = data[i]; |
| 508 | } |
| 509 | return outgoing; |
| 510 | } |
| 511 | |
| 512 | |
| 513 | // returns the index of the minimum value. |
no test coverage detected