Thread: bleh
View Single Post
Old 03-24-2008, 07:40 PM   #10
Destrus
Lizard Knight
 
Destrus's Avatar
 
Tournaments Won: 10

In-Game Name: Fyoran
Current Level: 3x
Server: teva
Posts: 876
Destrus has a spectacular aura aboutDestrus has a spectacular aura about
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..
Destrus is offline   Reply With Quote