• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HELP!!

 
Joe Grafton
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is anyone online at the moment. I need some help.
If so, please let me know.
Any help would be GREATLY appreciated.
Thanks,
Joe G
 
paul wheaton
Trailboss
Pie
Posts: 21600
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is now three and a half hours later... Did you post a message somewhere about your problem? I'll look around.
 
Joe Grafton
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
paul wheaton
Trailboss
Pie
Posts: 21600
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm going to move this to the "Java in General (beginner)" forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic