title: Java Help. I need help debugging
body: <p>This is my code:
  <a href="http://codepad.org/vGrVJr59" rel="nofollow">http://codepad.org/vGrVJr59</a> 
  My problem is the added whitespace at the end. Please help. 
  ERROR OUTPUT:
  Whitespace differs; see green (missing whitespace) or red (extra whitespace) boxes above.
  Tests aborted.  </p>
  
  <p>Complete the printTicTacToe method with char parameters <code>horizChar</code> and <code>vertChar</code> that prints a tic-tac-toe board with the characters as follows. End with newline. Ex: <code>printTicTacToe('~', '!')</code> prints:</p>
  
  <pre><code>x!x!x
  ~~~~~
  x!x!x
  ~~~~~
  x!x!x
  </code></pre>
  
  <p>Hint: To ensure printing of characters, start your print statement as: System.out.println("" + horizChar ...).</p>
  
  <pre><code>import java.util.Scanner;
  
  public class GameBoardPrinter {
      public static void printTicTacToe(char horizChar, char vertChar) {
  
          for(int i=1;i&lt;4;i++){ 
              for(int j=1;j&lt;4;j++){ 
                  System.out.print("x");
                  if(j&lt;3){
                      System.out.print(vertChar);
                  }
              }
              System.out.print("\n");
              if(i!=3){
                  for(int j=1;j&lt;6;j++){ 
                      System.out.print(horizChar);
                  }
              }
              System.out.println();
          }
          return;
      }
  
      public static void main (String [] args) {
          printTicTacToe('~', '!');
          return;
      }
  }  
  </code></pre>