I have pre-defined deposit and withdrawal methods. I am however having a bit of issues coming up with methods for counting the number of deposits and successful withdrawals. Any assistance or nudge in the right direction would be great, thank you.
public double countDeposits() {
for (double deposit=0; deposit>0;amtdeposits++) {
}
System.out.println(amtdeposits);
}
public double countWithdrawals() {
if ( withdraw!="Withdraw Failed: Insufficient Amount") {
amtwithdraw=amtwithdraw++;
System.out.println(amtwithdraw);
}
}