📅  最后修改于: 2022-03-11 14:52:28.283000             🧑  作者: Mango
public int remove(int index)
{
checkIndex(index, 0, size-1);
for (int i = index; i <= size; i++)
{
elementData[i] = elementData[i+1];
}
elementData[size] = 0;
size--;
return elementData[index];
}