java创建数组的三种方式:
Object[] objects = new Object[10];//第一种直接new,要显式指定数组长度
int[] ints = new int[]{1,2,85};//创建即初始化,使用new不用显式指定长度
int[] is = {1,2,85}; //创建即初始化
java创建数组的三种方式:
Object[] objects = new Object[10];//第一种直接new,要显式指定数组长度
int[] ints = new int[]{1,2,85};//创建即初始化,使用new不用显式指定长度
int[] is = {1,2,85}; //创建即初始化