aspose file tools*
The moose likes Java in General and the fly likes array of array help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "array of array help" Watch "array of array help" New topic
Author

array of array help

Frank Ponce
Greenhorn

Joined: Nov 22, 2006
Posts: 4
I am making an arbitrary size multi dimensional array of object Square...the size of the array is decided by the args array casted to an int. The array of squares is for a game of "lines". Hopefully you know that game because i don't want to explain it. The problem i am having is that i cant figure out how to set the top,bottom,left,right sides of the squares when the user enters the place where they want the line placed. I think opnce i can figure this out i can figure out how to reference the output board to output "marked line". Some of the code listed below has some arbitrary code commented out...pretend thats already deleted

Heres the code i have:
(3 classes)

Ådne Brunborg
Ranch Hand

Joined: Aug 05, 2005
Posts: 208
Hi,

please reduce the amount of code included in the post to a minimum - remember, you want people to easily understand your code and see your problem.

E.g. for the class Square, this is enough:



Please edit your post (don't post a new one) - this will increase your chance of getting helpful replies.


Entia non sunt multiplicanda praeter necessitatem
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: array of array help
 
Similar Threads
oxo game
Tic Tac Toe is this good solution
ObjectStream client-server object sharing problem.
Trouble starting this program
problem with program hanging