title: Array Not Reading From a File Correctly
body: <p>I'm attempting to read in some lines from a text file ("puzzle.txt") and save them into a 2D array as part of a wordsearch problem.  The first eleven lines look like this:</p>
  
  <pre><code>10 10
  WVERTICALL
  ROOAFFLSAB
  ACRILIATOA
  NDODKONWDC
  DRKESOODDK
  OEEPZEGLIW
  MSIIHOAERA
  ALRKRRIRER
  KODIDEDRCD
  HELWSLEUTH
  </code></pre>
  
  <p>The first two integers (R and C) are the number of rows and columns, and are both reading in correctly.  The rest of it, however, isn't working.  When I try to print out lines 2-10 as a string, all I get is:</p>
  
  <pre><code>[ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
  </code></pre>
  
  <p>... and so on.</p>
  
  <pre><code>import java.util.Scanner;
  import java.util.Arrays;
  import java.io.File;
  
  public class WordSearch {
  
      public static void main(String[] args) throws Exception {
  
          Scanner sc = new Scanner(new File("puzzle.txt"));
  
          /* Creating a 2D array of size R x C, variables in puzzle.txt 
          specifying the number of rows and the number of columns 
          respectively, and putting the next R lines of puzzle.txt into 
          that array. */
  
          // Reading in variables R and C from puzzle.txt
          int R = sc.nextInt();
          int C = sc.nextInt();
  
          // Initializing array of size R x C
          char[][] grid = new char[R][C];
  
  
          String s = sc.nextLine();
  
  
          for (int i=0;i&lt;R;i++) {
  
              for (int j=0;j&lt;C;j++) {
  
                  grid[j] = s.toCharArray();
  
                  System.out.print(Arrays.toString(grid[j]));
  
              }
  
          }
  
      }
  </code></pre>
  
  <p>I'm new to Java, so I'm guessing the problem is extremely obvious to those of you with more experience.  Help?</p>