lets say i have 8 deck of cards how to put all of that inside a array do i have to make a multidimensional array for each deck???
ilovejava
0
Junior Poster in Training
Recommended Answers
Jump to PostDepends on how you define/store a Deck.
Ideally Deck will be a class, so you can just have an array of them:Deck[] myDecks = new Deck[8]; // create array for (int 1 = 0; i < myDecks.length; i++) { myDecks[i] = new Deck(...); // initialise array …
All 3 Replies
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
hiddepolen
32
Posting Whiz in Training
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.