四、多维数组
package com.song.array;
public class Demo05 {
public static void main(String[] args) {
int[][] arrays = {{1, 2}, {2, 3}, {3, 4}, {4, 5}};//二维数组
System.out.println(arrays[0][0]);
System.out.println(arrays[0][1]);
for (int i = 0; i < arrays.length; i++) {
for (int j = 0; j < arrays[i].length; j++) {
System.out.println(arrays[i][j]);
}
}
}
}