No problem. Ok Im trying to do something else. From my function "takeMoneyOut" I want it to call another boolean function which will check if the dollars being taken out is over the accountbalance limit and thus return a true or false. But I dont know how I can do this. See code:
public double takeMoneyOut( double amount )
{
double totalBalance;
totalBalance = balance + overdraftLimit ;
if( CheckWithdrawal(amount) == false ) {
// error message
}
else
{
// return totalBalance
}
}
public boolean CheckWithdrawal(boolean checkWithdraw)
{
if(checkWithdraw > balance )
{
return true;
}
else
{
return false;
}
}
This code doesnt work though.