Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Array with String, int, double, and boolean

807598Sep 16 2006 — edited Sep 16 2006
greetings,

i need to create an array that will contain String, int, double, and boolean. after some reading i am lead to believe that multi-dimensional arrays must contain the same type of data. is that correct?? or can a multidimensional array have mixed data types.

the data that will be inputted has 3 objects which will recieve 5 arguments each. those arguments are String, int, double, and boolean.
String:  0,0   0,1   0,2
String:  1,0   1,1   1,2
int:     2,0   2,1   2,2
double:  3,0   3,1   3,2
boolean: 4,0   4,1   4,2
i'm thinking i am going to have to create 5 one dimensional arrays to do this... i thought this through myself so don't be too harsh =p
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 14 2006
Added on Sep 16 2006
9 comments
423 views