public MyList<ReceiptPO> getAll(String w) throws RemoteException { MyList<ReceiptPO> re = new MyList<ReceiptPO>(); ArrayList<String> strs = dh.read(); for (String string : strs) { ReceiptPO po = (new ReceiptPO(string)); if (po.getWriter().equals(w)) { re.add(po); } } return re; }