Multiple generic arrays
is it possible to create something like <String, Integer> a;
If I wanted to create an array that stores objects of String and Integer?
Jump to Post
I don't know of any way (others may know better?), but I'm curious as to why you want to do that. You will still need to test and cast anything you get from the array because String's methods and Integer's methods are so different.
Depending on why you are doing …
All 2 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.