• I have a number of player.
  • For each player i have to maintain 2D array how will do that in java i have no idea can you please help me.

Recommended Answers

All 5 Replies

how will do that in java i have no idea can you please help me.

Well, have you learned Java yet? Here might be a good place to start.

is your question how to create a 2D array?
int [][] Array array = new Array[Size][Size];

No...
I have multiple 2D arrays .Like housie game there is multiple ticket and data of these tickets i have stored in 2D array multiple playes each player have one ticket so want to store that which user have which ticket . i have no idea how to do ...

In Java we would probably use classes rather than 2D arrays here - eg a Ticket class and a Player class. Then you just need simple references or lists (1D arrays).

thanks

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.