07-数组
public class demo003 {
/*
数组
*/
public static void main(String[] args) {
int[] ages = new int[5];
// 数据的长度
System.out.println(ages);
int[] ages2 = new int[]{2,3,4,5,6};
System.out.println(ages2);
// 简写
int[] ages3 = {2,3,4,5,6};
System.out.println(ages3);
}
}