We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7c9eb8 commit cc2feacCopy full SHA for cc2feac
1 file changed
User_Defined_Exceptions/Bank_Withdraw.java
@@ -28,9 +28,9 @@ public static void main(String[] args) throws MinimumAccountBalance{
28
29
try {
30
if (current_balance < n) {
31
- throw new MinimumAccountBalance(
32
- "Insufficient funds ! your Current balance is " + current_balance);
33
- } else {
+ throw new MinimumAccountBalance("Insufficient funds ! your Current balance is " + current_balance);
+ }
+ else {
34
System.out.println("Please Take The Money : " + n);
35
}
36
} catch (MinimumAccountBalance mab) {
0 commit comments