title: Storing char array column into string for comparison
body: <p>I have a char array[4][4] of single characters ie. 'a' and I'm trying to store just the columns of the array into a string for comparison to another string. But the issue I have is it keeps adding the original element to the string. My code below contains the words "car" &amp; "trip" in the array, and want to compare it to another string with those words to make it true. Here is my code:</p>
  
  <pre><code>char[][] puzzle = {{'a', 'c', 'h' ,'t'}, 
                     {'v', 'a', 'x', 'r'}, 
                     {'x', 'r', 'e', 'i'}, 
                     {'c', 'q', 'i', 'p'}
                    };
  
  for(int row=0; row&lt;puzzle.length; row++)
  {
  
    String match = "";
    String matchword ="";
    for(int col=0; col&lt;puzzle.length; col++)
    {
     match += puzzle[col][row];
     System.out.print(match);
    }
   System.out.println();
  }
  </code></pre>
  
  <p>The output to the string is as follows:
  aavavxavxc
  ccacarcarq
  hhxhxehxei
  ttrtritrip</p>
  
  <p>instead of:
  avxc
  carq
  hxei
  trip</p>
  
  <p>Any help would be greatly appreciated.</p>