Java Collections Classes
Vector pointList = new Vector();
pointList.addElement(new Point(10, 10));
System.out.print(“vec has “ + pointList.size() +
Point first = (Point) vec.elementAt(0);
Vector primes = new Vector();
primes.addElement(new Integer(2));
primes.addElement(new Integer(3));
((Integer)primes.elementAt(0)).intValue();