public static Set<?> convertArrayToSet(Object[] source){
  Set<Object> set=new HashSet<Object>();
  for (  Object element : source) {
    set.add(element);
  }
  return set;
}

public static Set < ? > convertArrayToSet ( Object [ ] source ) { Set < Object > set = new HashSet < Object > ( ) ; for ( Object element : source ) { set . add ( element ) ; } return set ; }
convert array to set , removing duplicates
