Multiple array of types
6 answers
An array can only be of one type. You can create a new class like:
Class Foo{
String f1;
Integer f2;
}
Foo[] array=new Foo[10];
You might also be interested in using a map (it seems to me that you are trying to map strings to ids).
EDIT: You can also define your array of type Object, but this is what I usually avoid.
+11
source to share