Categories
Uncategorized

Bank Program

import java.io.*; import java.util.Scanner; class LessBalanceException extends Exception { LessBalanceException(double amt) { System.out.println(“withdrawal of “+amt+”is invalid”); } } class Account { public String name; public double bal; Account(double bal,String n) { System.out.println(“\n New account opened \n”); this.bal=bal; name=n; System.out.println(“\n Thank you your new account with account name¬† “+name+” is created¬† with minimum balance of “+ […]