//静态初始化
int[] a={1,2,3,4,5,6,7,8,9,10};
//System.out.println(a[10]);
//动态初始化
int b[]=new int[10];
b[0] = 1;
b[1] = 2;
b[2] = 3;
b[3] = 4;
b[4] = 5;
b[5] = 6;
b[6] = 7;
b[7] = 8;
b[8] = 9;
b[9] = 10;