public static Set<String> convertArrayToSet(String[] array){
  Set<String> resultSet=new HashSet<String>(array.length);
  Collections.addAll(resultSet,array);
  return resultSet;
}

public static Set < String > convertArrayToSet ( String [ ] array ) { Set < String > resultSet = new HashSet < String > ( array . length ) ; Collections . addAll ( resultSet , array ) ; return resultSet ; }
transforms array of string objects to set
