(int index)
| 103 | } |
| 104 | |
| 105 | private void boundsCheck(int index) throws IndexOutOfBoundsException |
| 106 | { |
| 107 | if(index >= size()) |
| 108 | throw new IndexOutOfBoundsException("List is of size " + size() + ", index requested " + index); |
| 109 | } |
| 110 | |
| 111 | /** |
| 112 | * Enlarge the storage array if needed |