数组的声明 double[] s Customer[] customers int[] i 创建数组 数组是引用类型,声明数组之后需要在堆中给数组分配空间 若不分配空间直接使用会空指针 i=new int[4] s=new double[]{13.5,23.5,34.6} customers={value1,value2} 给数组赋值 i[0]=12; i[1]=13; Arrays Arrays类能够方便的操作数组 fill sort equals binarySearch