question: 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 ; }
target:  Method to convert a String array to a set