public void delete(String item)
// Result: Removes item from the list if it is
// there; otherwise list is unchanged.
{
  int index = 0;
  boolean found = false;
  while (index < numItems && !found)
  {
    if (listItems[index].compareTo(item) == 0)
      found = true;
    else
     index++;
  }