I have two arrays:

Code:
int array1[][] = { { 1, 2, 3 }, 
                   { 4, 5, 6 } };
                         
int array2[][] = { { 1, 2 }, 
                   { 3 }, 
                   { 4, 5, 6 } };
I need to print both of them by column like this:

Code:
14
25
36

and


134
2 5
  6
I can do the first one, but I don't know how do do the second one using array.length and array[ row ].length. How do I do this? Thanks