ArrayLists store objects. You just have to cast the arraylist member object
as an int array:
ArrayList al = new ArrayList();
int[] ar = new int[] {1, 3, 5, 7,9};
al.Add(ar);
Console.WriteLine("ar[2] = {0}", ((int[])al[0])[2]);
I don't know if that's the only or the easiest way to do it, but the concept
remains the same. Cast the object as an integer array.
Dale
"Ricardo" <dr*******@terra.com.br> wrote in message
news:uc**************@TK2MSFTNGP12.phx.gbl...
Yes, but i don´t know how many arrays i will need to use, and a jagged
array i must initialize with a static lenght.
"Ravikanth[MVP]" <Ravikanth[MVP]@discussions.microsoft.com> wrote in
message news:12**********************************@microsof t.com... Hi
Use Jagged Arrays . Jagged arrrays are nothing but arrays of arrays.
Ravikanth[MVP]
"Ricardo" wrote:
how can i acess the members of an array that i put into a arraylist, like this:
int[] dez = new int[5];
ArrayList arList = new ArrayList();
arList.add(dez);
I want to get the dez[3] value.
[]s...