import java.util.*;

/**
 * A driver for experimenting with the FixedTermSavingsAccount
 * class and the Comparable interface
 */
public class Driver3
{
    /**
     * The entry point
     *
     * @param args   The command-line arguments
     */
    public static void main(String[] args)
    {
			FixedTermSavingsAccount[]          accounts;
			int                                i, size;
			String                             name;

			size = 4;

				// Construct the accounts
			accounts = new FixedTermSavingsAccount[size];
			for (i=accounts.length-1; i >= 0; i--)
			{
	    		name = "user"+i;
	    		accounts[i] = new FixedTermSavingsAccount(name);
			}

				// Print the accounts in the original order
			for (i=0; i < accounts.length; i++)
			{
	    		System.out.println(accounts[i].getAccountID()+"\t"+
			       accounts[i].getUserName());
			}

			System.out.println("\n\n");
    }

}
