Add to a value. @webref intlist:method @webBrief Add to a value
(int index, int amount)
| 434 | * @webBrief Add to a value |
| 435 | */ |
| 436 | public void add(int index, int amount) { |
| 437 | if (index < count) { |
| 438 | data[index] += amount; |
| 439 | } else { |
| 440 | boundsProblem(index, "add"); |
| 441 | } |
| 442 | } |
| 443 | |
| 444 | /** |
| 445 | * Subtract from a value. |
no test coverage detected