(int location)
| 323 | } |
| 324 | |
| 325 | @Override |
| 326 | public E get(int location) { |
| 327 | if (location < 0 || location >= size) { |
| 328 | throw new IndexOutOfBoundsException("Index out of bounds"); |
| 329 | } |
| 330 | return array[firstIndex + location]; |
| 331 | } |
| 332 | |
| 333 | private void growAtEnd(int required) { |
| 334 | if (array.length - size >= required) { |
no outgoing calls