sommit like dis?
Vector myVector = new Vector();
myVector.add(politican1);
myVector.add(politican2);
inside the Vector, they are stored as nameless Objects to get them back, u need to use casting, and assign to new
variables
Politican pol1, pol2;
pol1 = (Politican)myVector.get(0);
pol2 = (Politican)myVector.get(1);
( ,
Tue 20 Apr 2004, 1:45,
archived)
myVector.add(politican1);
myVector.add(politican2);
inside the Vector, they are stored as nameless Objects to get them back, u need to use casting, and assign to new
variables
Politican pol1, pol2;
pol1 = (Politican)myVector.get(0);
pol2 = (Politican)myVector.get(1);
oh...
and u got 'import java.util.Vector;' first thing at the top of ur class file right...
( ,
Tue 20 Apr 2004, 1:46,
archived)