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