public void getAccount() throws RemoteException { String username = view.getUserName(); Double amt = bs.getAccount(username); current = username; ba.set(amt); view.setBalance(""); view.setAmount(""); }
public void newAccount() throws RemoteException { String username = view.getUserName(); bs.newAccount(username); current = username; ba.set(0.0); view.setBalance(""); view.setAmount(""); }
public void showBalance() throws RemoteException { String balance = ba.getAmt().toString(); view.setBalance(balance); }
public void withdraw() throws RemoteException { String amount = view.getAmount(); Double amt = Double.parseDouble(amount); ba.withdraw(amt); bs.update(current, ba.getAmt()); }