Skip to content

Commit cc2feac

Browse files
committed
Update Bank_Withdraw.java
1 parent f7c9eb8 commit cc2feac

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

User_Defined_Exceptions/Bank_Withdraw.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ public static void main(String[] args) throws MinimumAccountBalance{
2828

2929
try {
3030
if (current_balance < n) {
31-
throw new MinimumAccountBalance(
32-
"Insufficient funds ! your Current balance is " + current_balance);
33-
} else {
31+
throw new MinimumAccountBalance("Insufficient funds ! your Current balance is " + current_balance);
32+
}
33+
else {
3434
System.out.println("Please Take The Money : " + n);
3535
}
3636
} catch (MinimumAccountBalance mab) {

0 commit comments

Comments
 (0)