• Post Reply Bookmark Topic Watch Topic
  • New Topic

In need of a data structure!  RSS feed

 
Simon Halliday
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have to produce a JAVA top trumps game and need a data structure in which to store 'card' objects. It needs to be expandable (ruling out a conventional array) and I need to be able to shuffle the cards (ruling out a linked list). I have heard of a mythical array type that can be expanded and has a '.shuffle' method but can't find anything on it in my textbooks. If anyone can suggest a structure and give me a quick run-down on the syntax associated with it (or tell me where to look to find out about it) I would most grateful.
 
David Harkness
Ranch Hand
Posts: 1646
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even when your question is so important that it trumps all others , please refrain from cross-posting in multiple forums. You can find all you need in the JavaDocs (and your previous post).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!