• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

array of array help

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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)

 
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
I once met a man from Nantucket. He had a tiny ad
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic