This content has been marked as final. Show 2 replies
sowndar wrote:Yes, the answer is: just don't do it. This is a bad design and will break easily. The better solution is to create a class that holds String, int, and String, and then create a 1-D array (or perhaps better the more flexible ArrayList) of objects of this class.
Is there any way to create a multi-dimentional array with each dimension storing data of different data types? For instance, i need to store IP address (string type), port (int type), host name ( string type) in a single Multi-Dimentional array.
Best of luck and hope this helps!