title: Java 2d char array
body: <p>Good day everyone, for the past couple of days I have been working on converting a 1D string array to a 2D char array. My 1D array works fine(zero issues) but when I convert to the 2D char array it only prints out the first row. Below is my code. Any feedback is appreciated. Thanks!</p>
  
  <pre><code>for(int i = 0; i &lt; array1.length; i++) //prints out array
  {  
      System.out.println("1d " + number[i]); //prints the line from the file
  }
  final int ROWS = 7;
  final int COLS = 5;
  
  char[][] 2darray = new char [ROWS][COLS];
  
  for (int i = 0; i &lt; array.length; i++)
  {
      2darray[i]= array1[i].toCharArray();   
  }
  
  for (int row = 0; row &lt; ROWS; row++)
  {
      for (int col = 0; col &lt; COLS; col++)
      {
           System.out.print(2darray[row][col]);
      }
      System.out.println();
  }
  </code></pre>