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?
Pyler
0
Junior Poster in Training
Recommended Answers
Jump to PostI 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
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
jwenting
1,889
duckman
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.