My code for the particular piece of the program that is having the error:
public class BankAccount extends Account { protected double minimumBalance; public double getMinimumBalance () { return minimumBalance; } public setMinimumBalance (double minimum) { minimumBalance = minimum; } public deposite (double amount) { setBalance(balance + amount); } public void withdraw (double amount) { if (balance - amount < minimumBalance) { System.err.println("Error: attempted to withdraw below minimum balance."); } else { setBalance(balance - amount); } } }
Here are the two errors:
JavaError.JPG