package beans;
import java.util.Iterator;
import java.util.Vector;
public class MyTest {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Vector vec=new Vector();
vec.add(1);
vec.add(2);
vec.add(3);
vec.add(4);
Iterator it=vec.iterator();
while(it.hasNext()){
System.out.println(it.next());
}
}
}