(Java) Printing Tic Tac Toe Board after Initilization
<p>I'm creating a simple Tic Tac Toe game. I've declared my 3 by 3 board and initialized each play area to <code>' '</code> or a space character.</p>

<p>However, when I try to print the board so that I get something that looks like this:</p>

<pre><code>   1   2   3
A    |   |    
   ----------
B    |   |   
   ----------
C    |   |   
</code></pre>

<p>Nothing gets printed.</p>

<p>Here is my TicTacToe.java:</p>

<pre><code>import java.util.Scanner;

public class TicTacToe{

    public static void main(String[] args) {
           new TicTacToe();
    }
    private char[][] board;
    private char player;

    public TicTacToe() {
    for(int i = 0; i &lt; 3; i++)
    {
        for(int j = 0; j &lt;3; j++)
         {
           board[i][j] = ' ';
         }
    }
     player = 'X';

    System.out.println(" 1 2 3");
    System.out.println("A" + board[0][0] + "|" + board[0][1] + "|" + board[0][2]);  
    System.out.println("-----");
    System.out.println("B" + board[1][0] + "|" + board[1][1] + "|" + board[1][2]);  
    System.out.println("-----");
    System.out.println("C" + board[2][0] + "|" + board[2][1] + "|" + board[2][2]);                        
    }
</code></pre>

<p>I've read from Murach's 4th edition that when the class is executed, the constructor is executed as well so I assume that the print functions will be executed.</p>

<p>Question:</p>

<p><strong>How do I print my tic tac toe board like the one above to my console?</strong></p>

<p>Edit:
Thank you for the help. Turns out I had to call the constructor instead of it automatically being executed. Code above does not contain the solution.</p>
