|
Help for accessing elements in a vector
Hello .
This is a simple question i guess. But i am stuck with it. I dont know where i am making a mistake.
I have a vector and i want to access the elements of the vector.
Ex:
Vectoe vRoles = new Vector();
// the following are the values in my vector
vRoles[0] = w; //
vRoles[1] = z;
vRoles[2] = y;
vRoles[3] = x;
i want to access the elements in order [w,x,y,z]. How can i do that ?
Please can anybody help me out with this.
Thanks in Advance.
|