I am new to Java and was wondering what I did wrong. I am building a simple board game, but for some reason the array prints as an array of "Ljava.lang.String;@4bec1f0c". I've read some similar questions to this problem but for some reason, the solutions that I have found does not work in my code.
Help is appreciated.
for(int row = 0; row < gameBoard.length; row++)
{
for(int col = 0; col < gameBoard[row].length; col++)
{
gameBoard[row][col] = "- ";
}
}
System.out.print(Arrays.toString(gameBoard));