question: private static String joinArray ( String [ ] array , String delimiter ) { StringBuffer buffer = new StringBuffer ( ) ; for ( int index = 0 ; index < array . length ; index ++ ) { buffer . append ( array [ index ] ) ; if ( index < array . length - 1 ) { buffer . append ( delimiter ) ; } } return buffer . toString ( ) ; }
target:  Returns a string created by each element of the array, separated by delimiter.