|
Array Help
Hi, I have an assignment to make a console-based Tic Tac Toe game in Java. I first need to create an array of positions, from position 0 to 9. I'm familiar with arrays somewhat, but what I don't know is how to make it output my array in the form of the Tic Tac Toe matrix, like this:
0 1 2
3 4 5
6 7 8
I've been looking all over and I can't find any tutorials on how to make it output like this. I know it's something stupid and simple that I'm missing, but I can't seem to figure it out. Thanks in advance.
|