All pastes #449122 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-04-20 01:41 UTC
rendered paste body
 public boolean withdrawal(double amount)
      {
         for(int i = 0; i <= WITHDRAWAL_TOTAL; i++)
         {
            if(amount > 0.0 && amount <= balance)
            {
               balance -= amount;
               return true;
            }
            else
            
               return false;
            
         }
      }