Removes and returns the item at the specified index.
(int index)
| 310 | |
| 311 | /** Removes and returns the item at the specified index. */ |
| 312 | public char removeIndex (int index) { |
| 313 | validateIndex(index); |
| 314 | char[] items = this.items; |
| 315 | char value = items[index]; |
| 316 | size--; |
| 317 | if (ordered) |
| 318 | System.arraycopy(items, index + 1, items, index, size - index); |
| 319 | else |
| 320 | items[index] = items[size]; |
| 321 | return value; |
| 322 | } |
| 323 | |
| 324 | /** Removes the items between the specified indices, inclusive. */ |
| 325 | public void removeRange (int start, int end) { |