Originally Posted by
Eranga
What you asking is not clear here. Do you want to add elements to a vector and iterate through that?
Please see how I created the array first
Object elements[][] = { {"first.doc","first.doc"},
{"second.pdf","second.pdf"},
{"third.txt","third.txt"}
};
It was coded manually. Now that I have the data to create an array similar to the one above inside a vector.
ie; v.elementAt(0) will be "first.doc" v.elementAt(1) will be "second.pdf" and so on.
My question is, how to create the object array with the elements from this vector(using a for loop to add elements to the array from vector)
Kindly say if my point is not clear.