/* * ArrayListTest.java * * Created on October 9, 2004, 2:49 PM */ /** * * @author levenick */ import java.util.*; public class VectorTest { Vector theList; /** Creates a new instance of ArrayListTest */ public VectorTest() { theList = new Vector(); theList.add(new Account()); theList.add(new Account("abe", 100)); theList.add(new Account("bea", 10000000)); System.out.println(theList); for (Iterator it=theList.iterator(); it.hasNext();) { Account nextAccount = (Account) it.next(); System.out.println("\n\nand the next account is..." + nextAccount); } } /** * @param args the command line arguments */ public static void main(String[] args) { new VectorTest(); } }