i think it will work after changing these things:
public double takeMoneyOut( double amount )
{
double totalBalance;
totalBalance = balance + overdraftLimit ;
if( CheckWithdrawal(amount) == false ) {
System.err.println("You tried to withdraw more than you have.");
}
else
{
return totalBalance
}
}
public boolean CheckWithdrawal(boolean checkWithdraw)
{
if(checkWithdraw > balance )
{
return true;
}
else
{
return false;
}
}
if that doesn't work at the if statement instead of if checkwithdrawal(amount) == false try making a boolean variable and assigning yourObject.CheckWithdrawal(amount); then doing if ( yourbool == false ) code.
btw u could do the error with system.out, err just means its an error