code: public void matchList(String elementName, String[] values, int oper)
      {
  
          // see also matchList(String elementName, Vector values, int oper)
          // Delete the old search criteria
          criteria = new Criteria();
  
          if (oper != NOT_IN)
          {
              for (int i = 0; i < values.length; i++)
              {
                  Criteria tempCrit = new Criteria();
  
                  tempCrit.addEqualTo(elementName, values[i]);
                  criteria.addOrCriteria(tempCrit);
              }
          }
          else
          {
              for (int i = 0; i < values.length; i++)
              {
                  criteria.addNotEqualTo(elementName, values[i]);
              }
          }
      }
docs: Change the search filter to one that specifies an element to not
  match one of a list of values.
  The old search filter is deleted.
  
  @param elementName is the name of the element to be matched
  @param values is an array of possible matches
  @param oper is the IN or NOT_IN operator to indicate how to matche