public synchronized void removeClientData(ClientData cd) { try { clientList.remove(cd); clientList.trimToSize(); sendList(); } catch (IOException e) { e.printStackTrace(); } }
public void removethread(ServerThread st) { clientList.remove(st); clientList.trimToSize(); }