(int index)
| 119 | } |
| 120 | |
| 121 | public T get(int index) { |
| 122 | if (index >= 0 && index < size) { |
| 123 | return (T) array[index]; |
| 124 | } else { |
| 125 | throw new IndexOutOfBoundsException(index + " not in [0, " + size + ")"); |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | public T set(int index, T element) { |
| 130 | if (index >= 0 && index < size) { |
no outgoing calls