创建一个数组,并初始化过程 1、声名一个数组 int[] array=null; 2、创建一个数组; array=new int[]; 3、给数组赋值 注意点:1、在声明数组时,并没有开辟空间 2、再new 时才再堆中开辟的大小为5的空间