public static final String implodeParams ( final Object [ ] params , final String glue ) { String returnValue = "" ; if ( params . length == 1 ) { return params [ 0 ] . toString ( ) ; } returnValue += params [ 0 ] ; for ( int i = 1 ; i < params . length ; i ++ ) { returnValue += glue + params [ i ] . toString ( ) ; } return returnValue ; }
Converts and array of objects into a concatenated string