I have a set of information that I need to store in some kind of collection, the problem is that i am not allowed to create a separate class for it because they say "i could mess up the structure and design of other things" so I have an integer and a string and what I want to do is to be able to store them like this
index or similar int string
index[0] | 1 | "Bear, Person, Bird"|
index[1] | 2 | "Pear, Apples, Lime"|
The question is, is there a collection of some type for which I can store data like this without the need of a class so that i can reference it like this
myWeirdList.add(2,"Test, test, Test, test");
or
myWeirdArray.add(3,"roco,paco");
I hope the questions is clear if not I will keep an eye to better clarify..
Tuple<int, string>should do the trick!