if(itemNum != numOfItems - 1) { System.arraycopy(items, itemNum + 1, items, itemNum, numOfItems - itemNum - 1);
if (Choice.EXCLUSIVE == choiceType && items[itemNum].isSelected()) { if (numOfItems > 1) { items[itemNum!=0 ? 0 : 1].setSelectedState(true); } }   if (itemNum != numOfItems - 1) { System.arraycopy(items, itemNum+1, items, itemNum, numOfItems-itemNum-1);
  public void delete(int itemNum)  {		if (itemNum < 0 || itemNum >= numOfItems) {			throw new IndexOutOfBoundsException();		}    if(itemNum != numOfItems - 1) {      System.arraycopy(items, itemNum + 1, items, itemNum, numOfItems - itemNum - 1);    }    numOfItems--;  }