Day4## 知识点总结 一、数组: 1.定义:具有相同类型数据的集合 类型[] 变量;类型 变量[]; int[] ages; int ages[]; 2.赋值 变量 = new 类型[长度]; 3.下标,索引:0~长度-1 变量[索引] 4.长度 5.引用类型