protected static Set stringArrayToSet(String[] strs){
  int count=strs.length;
  Set set=((count > 0) ? new HashSet(count) : new HashSet());
  for (int i=0; i < count; i++) {
    set.add(strs[i]);
  }
  return set;
}

protected static Set stringArrayToSet ( String [ ] strs ) { int count = strs . length ; Set set = ( ( count > 0 ) ? new HashSet ( count ) : new HashSet ( ) ) ; for ( int i = 0 ; i < count ; i ++ ) { set . add ( strs [ i ] ) ; } return set ; }
method to convert a string array to a set
