import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Scanner;
/**
* @author --------------, Mar 24, 2008
*
*/
public class Bank {
/**
* <b>Intent:</b> Describe the purpose of the method. <br>
* <b>Pre-condition:</b> Describe what needs to be true before use of
* method. <br>
* <b>Post-condition:</b> Describe what is true after a call to method.
* <br>
*
* @param args
* @throws IOException
*/
public static void main(String[] args) throws IOException {
ArrayList<BankAccount> aList1 = new ArrayList<BankAccount>();
Scanner inFile = new Scanner(new File("lab9.dat"));
BankAccount a1;
String n;
double mun;
int num;
while (inFile.hasNext()) {
n = inFile.nextLine();
num = inFile.nextInt();
mun = inFile.nextDouble();
a1 = new BankAccount(n, num, mun);
aList1.add(a1);
}
}
}
ffs, exception in main blah blah blah yet my brain is not functioning properly to figure out what i screwed up
__________________
"Broken moves are also vampiric in nature"

Last edited by Destrus; 03-24-2008 at 08:14 PM..
|