title: How to add a 1D array to a 2D array?
body: <p>Sorry first time asking a question here.</p>
  
  <p>If I have a 2D Array like this: </p>
  
  <pre><code>int[][] array2d = {{1, 2, 3}, {6, 7, 8}};
  </code></pre>
  
  <p>How do I add multiple 1D Arrays like this:</p>
  
  <pre><code>int[] array1d = {3, 2, 1};
  int[] array1d2 = {8, 7, 6};
  </code></pre>
  
  <p>so that my original 2d array becomes this:</p>
  
  <pre><code>int[][] array2d = {{1, 2, 3}, {6, 7, 8}, {3, 2, 1}, {8, 7, 6}};
  </code></pre>
  
  <p><strong>Note:</strong> this is for adding information from a JTextfield into a JTable whenever a button is pressed. So, the 2d array will be used as the data inside the table. If there is a better way to accomplish this I would appreciate it too. =)</p>