Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Basic Java Help Required....

Status
Not open for further replies.

Smith121

Programmer
Jan 15, 2005
2
GB
I'm designing a very basic Object-Oriented program in netbeans using java, but I'm stuck, I just wonder if anyone could help me....?

Created Accounts:

ACC NUM NAME BALANCE
246246 James Taylor 100
123123 Chris Smith 0

I created two new accounts using the values above and returned them to the class constructor but I’m stuck on how to retrieve the information back.

For example:
Acc Number: 123123
*** Welcome ***
Chris
Your balance is: 0

Or/and

Acc Number: 101010
*** Sorry no account found ****

Also: -

After that I wish to allow the use to enter the amount they wish to withdraw or deposit for that particular account.

Is this possible?

Any help will be very much appreciated!
Thanks
Chris
 
I don't understand what you mean by:
"I created two new accounts using the values above and returned them to the class constructor"

If your accounts expose some public properties, there should be no problem asking the accounts for it's Accound num for ex:

int anAccountNumber = anAccount.AccountNumber;


Edward J.S.
 
Perhaps if you were to post some of your code, we can see what you've got so far?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top