|NO.Z.00085|——————————|BigDataEnd|——|Java&数组单元.V04|——|Java.v04|一维数组.v04|优缺点|
一、一维数组的优缺点
### --- 一维数组的优缺点
~~~ ——> 可以直接通过下标(或索引)的方式访问指定位置的元素,速度很快。
~~~ ——> 数组要求所有元素的类型相同。
~~~ ——> 数组要求内存空间连续,并且长度一旦确定就不能修改。
~~~ ——> 增加和删除元素时可能移动大量元素,效率低。
Walter Savage Landor:strove with none,for none was worth my strife.Nature I loved and, next to Nature, Art:I warm'd both hands before the fire of life.It sinks, and I am ready to depart
——W.S.Landor
浙公网安备 33010602011771号