|
Re: 2D array
|
Posted: Nov 9, 2005 9:35 PM
|
|
Why don't you declare it to hold Objects. Then you will be able to hold String and Double (Note: not double) and cast them when you need to access them. A little bit confused here, how will you be indexing it?
Alternatively create a Container that has Getters for a Room Number and an Occupant. You can then declare the array to hold this Container lets say its called Entity. You can then access the room numbers and the occupants names via the getters at any given index.
|
|