2
Answers

Multidimensional arrays of different types?

Thomas

Thomas

12y
1.2k
1
Is it possible to create an array that has different data types?

for example I want to create an array that contains a string (label) and a Color object.
so that I can cycle through the array for the string then assign the Color object.
IE
Color [][] Homes = { {"Single Family", Color.Red},{"Duplex", Color.Blue}, etc...};

Or to do something like that would I need to create a data table?

Answers (2)