import Java.util.*;
/**
* Demonstrates how to use a Vector (essentially a growable array).
***/
public class VectorDemo
{
public static void main(String args[]) throws Exception
{
Vector v = new Vector();
v.addElement("Mary");
v.addElement("John");
v.addElement("David");
v.addElement("Pam");
v.addElement("Joe");
for (int i=0; i < v.size(); i++)
System.out.println("Hello " + (String)v.elementAt(i));
}
}