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