private boolean contains(String ids[],String id){
  for (int i=0; i < ids.length; i++) {
    if (Operator.compare(ids[i],id) == 0)     return true;
  }
  return false;
}

private boolean contains ( String ids [ ] , String id ) { for ( int i = 0 ; i < ids . length ; i ++ ) { if ( Operator . compare ( ids [ i ] , id ) == 0 ) return true ; } return false ; }
checks if a string array ( ids ) has one element that is equal to id
