We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73241e1 commit 0a10fceCopy full SHA for 0a10fce
src/com/codefortomorrow/advanced/chapter14/solutions/Bank.java
@@ -66,12 +66,7 @@ public void deposit(double amount) {
66
67
public void withdraw(double amount) throws NotEnoughMoneyException {
68
if (amount > balance) {
69
- throw new NotEnoughMoneyException(
70
- String.format(
71
- "Bank balance is short $%.2f",
72
- Math.abs(balance - amount)
73
- )
74
- );
+ throw new NotEnoughMoneyException(String.format("Bank balance is short $%.2f", Math.abs(balance - amount)));
75
}
76
balance -= amount;
77
0 commit comments