//Check we are opening the account with a valid amount
if(openAmount >= 0.0)
{
try
{
//Create a Saving account for the customer with the openAmount
Account theAccount = new Savings(openAmount, theCustomer);
addAccount(theAccount);
return true;
}catch(AccountException e)
{
这个是加账户
请问移除账户怎么写呀qwqpublic boolean closeAccount(Customer theCustomer, double theAmount)
{
if(rmAccount = 0.0)
{
try
{} }
return true;
if(openAmount >= 0.0)
{
try
{
//Create a Saving account for the customer with the openAmount
Account theAccount = new Savings(openAmount, theCustomer);
addAccount(theAccount);
return true;
}catch(AccountException e)
{
这个是加账户
请问移除账户怎么写呀qwqpublic boolean closeAccount(Customer theCustomer, double theAmount)
{
if(rmAccount = 0.0)
{
try
{} }
return true;
rmAccount(theAccount);
return true;