Program 1: Create a bank account that deposit & withdraw money from a account and show account details using Array-List.
Solution: We need two classes
1. Account - that handles deposit & withdraw methods.
2. main - that handles Array-List & Account class.
Account Class Code:
main Class Code:
Output Console :
Menu
Account Create
Account Details
Deposit Money
Withdraw Money
Service Close
Done! @D
Solution: We need two classes
1. Account - that handles deposit & withdraw methods.
2. main - that handles Array-List & Account class.
Account Class Code:
main Class Code:
Output Console :
Menu
Account Create
Account Details
Deposit Money
Withdraw Money
Service Close
Done! @D