MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / depositMoney

Method depositMoney

Programs/bankSystem.java:50–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected