数据的三种形式,请大家分别回答下面的输出语句分别是什么,答对有奖励噢
public static void main(String[] args) {
int[][] arr1 = new int[3][2];
int[][] arr2 = new int[3][];
int[][] arr3 ={{1,2,3},{4,5,6},{7,8,9}};
System.out.println(arr1);
System.out.println(arr1[1]);
System.out.println(arr1[2]);
System.out.println(arr1[3]);
System.out.println(arr1[1][1]);
System.out.println(arr1[1][2]);
System.out.println("-------------------------");
System.out.println(arr2);
System.out.println(arr2[1]);
System.out.println(arr1[1][2]);
System.out.println("-------------------------");
System.out.println(arr2[1]);
System.out.println(arr2[1][2]);
System.out.println(arr2[1][3]);
System.out.println(arr2[2][2]);
} |
|