private static String join ( String [ ] values , String separator ) { StringBuilder result = new StringBuilder ( ) ; if ( values != null ) { for ( int i = 0 ; i < values . length ; i ++ ) { if ( i > 0 ) { result . append ( separator ) ; } result . append ( values [ i ] ) ; } } return result . toString ( ) ; }
Joins the list of values .