title: Adding single array column to the end of a 2d array. Java
body: <p>I am trying to add another column of data to the end of my 2d array, but cannot make it work.
  Any help would be great. This is what I have so far.</p>
  
  <pre><code>double[] d = a.Total();
  
  String[][] sr = a2.records();
  String[] d2 = new String[d.length];
  
  for (int i = 0; i &lt; d.length; i++)  
  d2[i] = String.valueOf(d[i]);       // converts double[] into string[]
  </code></pre>
  
  <p>My desired result is a 2d array all[sr.length + 1][] with the last column of data being d2.
  Both arrays have the same amount of rows.</p>
  
  <p>thankyou</p>