title: Converting 1-D String array to 2-D char array
body: <p>I'm working on a program that requires me to take in a 1-D String array from a file and turn it into a 2-D array. Taking in the array from the file works fine, but I can't get the second part to work.</p>
  
  <p>The code I'm working with is:</p>
  
  <pre><code>char[][] array2 = new char [7][5];
  
  for (int i = 0; i &lt; array1.length; i++)
  {
      array2[i]= array[i].toCharArray();   
  }
  
  for (int i = 0; i &lt; 5; i++)
  {
      for (int j = 0; j &lt; 7; j++)
      {
           System.out.println(array2[i][j]);
      }
  }
  </code></pre>
  
  <p>The array is supposed to print in a grid format, but is printing downward. </p>
  
  <p>Any help is appreciated, thanks. </p>