public static < T > String argsToString ( String separator , T ... args ) { StringBuilder sb = new StringBuilder ( ) ; for ( T s : args ) { if ( sb . length ( ) != 0 ) { sb . append ( separator ) ; } sb . append ( s ) ; } return sb . toString ( ) ; }
Converts varargs of objects to a string .