本文共 142 字,大约阅读时间需要 1 分钟。
数组特点:数组元素可以是基本类型也可以是引用类型,比如一个对象Man
数组越界:数组元素[n]个,下标(索引)从0开始到n-1
数组也是一个对象,因为它是new出来的,可通过数组名.length将数组中的内容取出来,类似对象的成员变量,数组元素数据类型一致,长度固定,如有越界会报错。
转载地址:http://egjwi.baihongyu.com/