<数据类型>[] 变量名 = new <数据类型>[数组长度] int[] a = new int[5] int a[1]=1; int a[2]=2; int a[3]=3; int a[4]=4; int a[5]=5;
int[] a = {1,2,3,4,5,6}