public static String concatStringWithDelimiter ( String [ ] strings , String delimiter ) { StringBuilder sbr = new StringBuilder ( ) ; int size = strings . length ; for ( int i = 0 ; i < size - 1 ; i ++ ) { sbr . append ( strings [ i ] ) . append ( delimiter ) ; } sbr . append ( strings [ size - 1 ] ) ; return sbr . toString ( ) ; }
Utility method to create a large String with the given delimiter .