Trying to invoke a method called addAccount for a bank application but it keeps giving me .class is expected error

后端 未结 3 1970
北海茫月
北海茫月 2021-01-26 11:25

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

3条回答
  •  被撕碎了的回忆
    2021-01-26 11:49

    Do not specify parameter type while calling a method.

    Here is an error:

    case 1 : addAccount(int accountNo,double accountBal);
    

    It must be:

    case 1 : addAccount(accountNo,accountBal); break;
    

提交回复
热议问题