I am trying to create a program in Java in which a monthly service charge is to increase by $1 for every withdrawal after the 4th withdrawal (bank account program). I’ve tried to use a loop, but it just got stuck.
Code:
public void monthlyProcess() {
int w = getWithdrawals();
if (w > 4) {
while(w > 4) {
serCharge++;
}
}
super.monthlyProcess();
if(bal <= MIN_BAL) {
status = false;
}
}
Thank you!
Here, this should work.
Cheers!