Return the largest value. @webref intlist:method @webBrief Return the largest value
()
| 534 | * @webBrief Return the largest value |
| 535 | */ |
| 536 | public int max() { |
| 537 | checkMinMax("max"); |
| 538 | int outgoing = data[0]; |
| 539 | for (int i = 1; i < count; i++) { |
| 540 | if (data[i] > outgoing) outgoing = data[i]; |
| 541 | } |
| 542 | return outgoing; |
| 543 | } |
| 544 | |
| 545 | |
| 546 | // returns the index of the maximum value. |
nothing calls this directly
no test coverage detected