Hello. I have this enoying problem. ill just show it with code.
Vector<Vector> v = new Vector<Vector>();
Vector<String> s = new Vector<String>();
s.addElement("a");
s.addElement("b");
s.addElement("c");
v.add(s);
This is how it looks. Now i would like to loop it out using Iterator.
Object done = null;
Iterator itr = v.iterator();
while (itr.hasNext()){
done = itr.next();
}
The loop just goes thrue the first Vector, and the Object done now has the result [a,b,c]. How can i now loop the Object done so the result will be a,b,c.
Edited by: MagnusT76 on Nov 21, 2009 2:26 AM