()
| 48 | |
| 49 | // function to deposit money in existing account - |
| 50 | public void depositMoney() { |
| 51 | double depAmt = 0; |
| 52 | System.out.println("Enter amount that you want to deposit: "); |
| 53 | depAmt = sc.nextDouble(); |
| 54 | balance = balance + depAmt; |
| 55 | System.out.println("Your new balance is: " + balance); |
| 56 | } |
| 57 | |
| 58 | // function to withdraw money from an existing account - |
| 59 | public void withdrawMoney() { |