Commit cd4d7d74 authored by a-j.towse's avatar a-j.towse

final commit

parent b0293de0
...@@ -24,7 +24,7 @@ public class BankAccount { ...@@ -24,7 +24,7 @@ public class BankAccount {
} }
public void withdrawal(double outAmount){ public void withdrawal(double outAmount){
if (outAmount <= balance || outAmount > 0 - overdraft){ if (outAmount <= balance && outAmount > 0 - overdraft){
balance -= outAmount; balance -= outAmount;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment