动态数组的其它方法 ArrayList

70 阅读1分钟

遍历

删除

Remove(数据)

RemoveAt(索引)

Clear()

删除数据不存在时,会出错

删除索引不存在时,会报错,数组越界

常见错误