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