I\'m looking for something like an Array, but it needs to store multiple data types. The Oracle Java tutorials says, \"An array is a container object that holds a fixed numb
You should consider the use of the typesafe heterogeneous container pattern.
There the data is stored in a Map, Object> and access to the map is hidden behind generic methods, that automatically cast the return value.
Map, Object>
public T getObjectByKey(Key key) return (T) map.get(key);
The same for put.
put