hi everyone,
It's lunch for me now so here goes:
I am working on a hw assignment that models a bank.
There are 3 accounts and the normal transactions to be performed on them. (i.e. deposit, balance, withdraw, etc.) I am being asked to add a transfer method under the model of :
private void transfer (BankAccount to, BankAccount from, int amount) I have instantiated the statement as a seperate method under the Bank class (Bank.java) However, my problem lies in the reading of the transfer
string. I can't get the program to compile. I have tried numerous methods. such as :
terminal.readInt("account 1,2,3)" + whichAccount);(xfer where)
int amount = readInt(amount); (prompt for the amount to xfer)
none of these would do it for me. i realize this is not enough info but if anyone has suggestions or would like to get more info, i have a hard copy at work, but no access to the file so I can type it in as an entry here.
Any help, again, would be GREATLY appreciated.
Thank you all!!!
Joe G.
Originally posted by Paul Wheaton:
It is now three and a half hours later... Did you post a message somewhere about your problem? I'll look around.