public static String asString ( final Object [ ] input , final String delim ) { final StringBuffer sb = new StringBuffer ( ) ; for ( int i = 0 ; i < input . length ; i ++ ) { if ( i > 0 ) { sb . append ( delim ) ; } sb . append ( input [ i ] . toString ( ) ) ; } return sb . toString ( ) ; }
Format an array of objects as a string separated by a delimiter by calling toString on each object