int[][]myarray=new int[][]{new int[]{1,2.3},}new int[]{4,5,6,7},new int{8,9,10,11,12},new int[]{-1.int[][]myarray=new int[][]{new int[]{1,2.3},}new int[]{4,5,6,7},new int[]{8,9,10,11,12},new int[]{-1.0}}; myarray[2][1]=______
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/19 04:55:21
int[][]myarray=new int[][]{new int[]{1,2.3},}new int[]{4,5,6,7},new int{8,9,10,11,12},new int[]{-1.int[][]myarray=new int[][]{new int[]{1,2.3},}new int[]{4,5,6,7},new int[]{8,9,10,11,12},new int[]{-1.0}}; myarray[2][1]=______
int[][]myarray=new int[][]{new int[]{1,2.3},}new int[]{4,5,6,7},new int{8,9,10,11,12},new int[]{-1.
int[][]myarray=new int[][]{new int[]{1,2.3},}new int[]{4,5,6,7},new int[]{8,9,10,11,12},new int[]{-1.0}}; myarray[2][1]=______
int[][]myarray=new int[][]{new int[]{1,2.3},}new int[]{4,5,6,7},new int{8,9,10,11,12},new int[]{-1.int[][]myarray=new int[][]{new int[]{1,2.3},}new int[]{4,5,6,7},new int[]{8,9,10,11,12},new int[]{-1.0}}; myarray[2][1]=______
myarray[2][1]=9
可看成如下声明
myarray[0]=new int[]{1,2,3}
myarray[1]=new int[]{4,5,6,7}
myarray[2]=new int[]{8,9,10,11,12}
myarray[2]=new int[]{-1,0}
显然 myarray[2][1]=9
说明:
int[][] myarray 声明一个数组 该数组的每个元素又是一个数组
new int[][]{...} 用new 创建数组 myarray
大括号里的内容是myarray的各个元素,各元素用逗号间隔
其中的各个 new int[]{} 是创建一个数组该数组的每初始化元素写在大括号里