(int index, boolean element)
| 124 | } |
| 125 | |
| 126 | public void insert(int index, boolean element) { |
| 127 | checkCapacity(++pos); |
| 128 | System.arraycopy(buffer, index, buffer, index + 1, pos - index - 1); |
| 129 | buffer[index] = element; |
| 130 | } |
| 131 | |
| 132 | public void removeIndex(int index) { |
| 133 | if (pos < 1 || index >= pos) { |