static String implode ( final String glue , final String [ ] what ) { final StringBuilder builder = new StringBuilder ( ) ; for ( int i = 0 ; i < what . length ; i ++ ) { builder . append ( what [ i ] ) ; if ( i + 1 != what . length ) { builder . append ( glue ) ; } } return builder . toString ( ) ; }
Concantenate a String array what with glue glue .