public synchronized void replaceItem(String item, int index) throws IllegalArgumentException { remove(index); addItem(item, index);
replaceItem(String item, int index) throws IllegalArgumentException { if ((index < 0) || (index >= items.size())) throw new IllegalArgumentException("Bad list index: " + index);  items.insertElementAt(item, index + 1); items.removeElementAt (index);  if (peer != null) { ListPeer l = (ListPeer) peer;   l.add (item, index + 1); l.delItems (index, index);
	public synchronized void replaceItem(String item, int index) throws IllegalArgumentException {		remove(index);		addItem(item, index);	}