更新时间:2023-11-06 23:42:16
数组是不可变的。一旦创建,在将旧数组内容复制到新数组时,如果不分配新数组并将对象插入所需位置,则无法更改它们。
Arrays are immutable. Once created they cannot be changed without allocating a new array and inserting the object where you want it while you copy the old array content to the new one.