Thread: Array Help
View Single Post
  #1 (permalink)  
Old 03-28-2008, 12:23 AM
bluegreen7hi bluegreen7hi is offline
Member
 
Join Date: Nov 2007
Posts: 12
bluegreen7hi is on a distinguished road
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.
Reply With Quote
Sponsored Links