title: Appending a string into 2d Array Java
body: <p>I have a string containing the following:</p>
  
  <pre><code>String text = "abcdefghijkl"
  </code></pre>
  
  <p>I want to put it in a 2d array so there will be 4 rows of 3</p>
  
  <p>this is currently what I have, its not working correctly though: </p>
  
  <pre><code>char boxChar[][] = new char[4][3];
          int j,i;
  
          for (i = 0; i&lt;4; i++)
          {
              for (j=0; j&lt;3; j++)
              {            
  
                  boxChar[i][j] = text.charAt((i+1)*(j));
  
              }
  
          }
  
          return boxChar[row][col];
  </code></pre>