how to create an array element that store multiple data types

Feb 16 2007 5:36 AM

I want to create an array element that store multiple data types, for example

I'm using Object[] mult_type = new Object[4];

How can I go about to do that in storing different type of objects and
retrieve
 the objects back into it's original states?

data type index
 String 0
 int 1
 long 2
 short 3


Answers (1)