Demo43_多维数组01

//多维数组
package com.HuanXin.array_6;

public class Demo06_1 {
public static void main(String[] args) {
int[][] A = {{1, 2}, {3, 4}, {5, 6}, {7, 8}};
for (int i = 0; i <A[0].length ; i++) {
System.out.println(A[0][i]);//输出A[0]中的每一个数组元素
}
}
}

 

posted @ 2022-10-22 22:26  陈焕新  阅读(16)  评论(0)    收藏  举报