public class ArrayDemo02 {标签:初始化,10,静态,System,int,数组,println,out From: https://www.cnblogs.com/zzh-study/p/17794614.html
public static void main(String[] args) {
//静态初始化: 创建+赋值
int[] a = {1,2,3,4,5,6,7,8};
System.out.println(a[0]);
//动态初始化:包含默认初始化
int[] b = new int[10];
b[0] = 10;
b[1] = 10;
System.out.println(b[0]);
System.out.println(b[1]);
System.out.println(b[2]);
System.out.println(b[3]);
}
}