title: Adding a border to an array
body: <p>I have an array that when printed, prints like this:</p>
  
  <pre><code>    W V E R T I C A L L 
  
      R O O A F F L S A B 
  
      A C R I L I A T O A 
  
      N D O D K O N W D C 
  
      D R K E S O O D D K 
  
      O E E P Z E G L I W 
  
      M S I I H O A E R A 
  
      A L R K R R I R E R 
  
      K O D I D E D R C D 
  
      H E L W S L E U T H
  </code></pre>
  
  <p>How can I get it to print like this:</p>
  
  <pre><code>    # # # # # # # # # # # #
  
      # W V E R T I C A L L #
  
      # R O O A F F L S A B #
  
      # A C R I L I A T O A #
  
      # N D O D K O N W D C #
  
      # D R K E S O O D D K #
  
      # O E E P Z E G L I W #
  
      # M S I I H O A E R A #
  
      # A L R K R R I R E R #
  
      # K O D I D E D R C D #
  
      # H E L W S L E U T H #
  
      # # # # # # # # # # # #
  </code></pre>
  
  <p>I have tried making the size larger to accommodate for the extra characters but I keep getting exception out of bounds. I am basically trying to get a non letter character to make a border around my array so that when I implement my crossword solver, when searching for a letter in the surrounding letters, it doesn't hit the boundary, instead hits the non letter character and then passes false.</p>
  
  <p>This is my code that builds my array:</p>
  
  <pre><code>    for (int i=1; i&lt;row; i++){
          String getChar = (new String(sc.next()));
          for(int j = 1;j&lt;col; j++){
              puzzle[i][j] = getChar.charAt(j);
              }
          }
  </code></pre>
  
  <p>Any help is appreciated!</p>
  
  <p>EDIT: This prints my array:</p>
  
  <pre><code>     for (int i=0; i&lt;puzzle.length; i++){
  
             System.out.print(Arrays.toString(puzzle[i]));
             System.out.println("");
       }
  </code></pre>
  
  <p>EDIT2: This is my check method:</p>
  
  <pre><code>    private static boolean checkNE(int row, int col, String word, char[][] puzzle) {
      //Checking diagonals direction
      for(int letter = 1; letter &lt; word.length(); letter++) {
          if(puzzle[row - letter][col + letter] != word.charAt(letter)) {
              return false;
          }
      }
      return true;
  }
  </code></pre>