title: Creating a new 2D array that = size of 2D array 1 + size of 2d array 2 (rows and columns)
body: <pre><code>public static int[][] add2DArrays(int[][]A, int[][]B) {
          return int[][] C;
  }
  </code></pre>
  
  <p>I understand how to populate this new array by adding the sums of the two arrays A &amp; B, the road block I am facing is creating this initial array C. We cannot assume the size of the arrays given as parameters, so that is the part I am having a problem with.</p>
  
  <p>I know by doing:</p>
  
  <pre><code> int[][] C = new int[A.length+B.length][]; //this will only give me the # of rows;
  </code></pre>
  
  <p>I am stuck on how to get the proper length of columns for the rows in the new array. I am thinking it may be possible to some how record the length of the longest row in A, and then record the longest row in B, and choose the bigger of the two, but that seems messy and inefficient. Thank you all for your support.</p>