Replaces the element at the specified position in this list with the specified element @param index index of element to replace. @param element element to be stored at the specified position. @return the element previously at the specified position. @exception IndexOutOfBoundsException if the ind
(final int index, final int element)
| 574 | */ |
| 575 | |
| 576 | public int set(final int index, final int element) |
| 577 | { |
| 578 | if (index >= _limit) |
| 579 | { |
| 580 | throw new IndexOutOfBoundsException(); |
| 581 | } |
| 582 | int rval = _array[ index ]; |
| 583 | |
| 584 | _array[ index ] = element; |
| 585 | return rval; |
| 586 | } |
| 587 | |
| 588 | /** |
| 589 | * Returns the number of elements in this list. If this list |
no outgoing calls