public static String implode ( String glue , Object [ ] pieces ) { if ( pieces == null ) { return null ; } StringBuffer sb = new StringBuffer ( ) ; for ( Object o : pieces ) { if ( sb . length ( ) > 0 ) { sb . append ( glue ) ; } sb . append ( o . toString ( ) ) ; } return sb . toString ( ) ; }
String array implode internal method