This has been giving me error when I try to invoke the addAccount method saying .class is expected on the line where I try to invoke it. I am trying to do an as
addAccount
you have declared it static so you need to add the class name before the call
bank.addAccount(int accountNo,double accountBal);
and instead of the types decleration you have to call it with parameters.
bank.addAccount(accountNo,accountBal);