}
- public boolean removeAccount(Account ac)throws RemoteException {
- if(this.dbMngr.removeAccount(ac))
- return true;
+ public boolean removeAccount(int index)throws RemoteException {
+ AdminManager adm = new AdminManager();
+ try {
+ if(this.dbMngr.removeAccount(adm.getAllOwners().get(index)))
+ return true;
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
return false;
}