public void findOther(GuiUserEvent event) { Map<String, Integer> al = sv.getOtherItems(sessionId); StringBuilder buff = new StringBuilder(); for (Entry<String, Integer> e : al.entrySet()) { buff.append(e); buff.append('\n'); } event.window.setValue("memResult", buff.toString()); }
public void getOtherItems(GuiUserEvent event) { Map<String, Integer> items = sv.getOtherItems(sessionId); for (int i = 0; i < items.size(); i++) { System.out.println(items.get(i)); } }