What is a good built in data structure for storing a few numbers or characters.
I was looking at linked lists but i dont know how to retrieve teh data.
What im really looking for is something like the vectors in C++.
What is a good built in data structure for storing a few numbers or characters.
I was looking at linked lists but i dont know how to retrieve teh data.
What im really looking for is something like the vectors in C++.
Try an ArrayList.
Code:ArrayList a = new ArrayList(); a.Add(3); a.Add(1); a.Add(4); int i = (int)a[1];
Thanks, but I changed the code around a bit and made it work with a normal array.
However I will be changing it since i want something that can dynamicly change size.