public static void main6(String[] args) {
int[][] array = {{1,2,3},{4,5,6}};
for (int i = 0; i < array.length; i++) {
for (int j = 0; j < array[i].length; j++) {
System.out.print(array[i][j]+" ");
}
System.out.println();
}
System.out.println("=============");
for (int[] ret : array) {
for (int x : ret) {
System.out.print(x+" ");
}
System.out.println();
}
System.out.println("=============");
System.out.println(Arrays.deepToString(array));
/*System.out.println(Arrays.toString(array[0]));
System.out.println(Arrays.toString(array[1]));*/
}