Declare and create a two-dimensional array of chars, tictactoe, with 3 rows, each with 3 elements, and initialize it to all space characters.

LANGUAGE: Java

CHALLENGE:

Declare and create a two-dimensional array of chars, tictactoe, with 3 rows, each with 3 elements, and initialize it to all space characters.

SOLUTION:

char[][] tictactoe = new char[3][ 3 ];
int i,j;
for(i=0;i<3;i++)
    for(j=0;j<3;j++)
        tictactoe[i][j]=' ';