question: public static String arrayToList ( String [ ] array , String delimiter ) { if ( ArrayUtil . isEmpty ( array ) ) return "" ; StringBuilder sb = new StringBuilder ( array [ 0 ] ) ; if ( delimiter . length ( ) == 1 ) { char c = delimiter . charAt ( 0 ) ; for ( int i = 1 ; i < array . length ; i ++ ) { sb . append ( c ) ; sb . append ( array [ i ] ) ; } } else { for ( int i = 1 ; i < array . length ; i ++ ) { sb . append ( delimiter ) ; sb . append ( array [ i ] ) ; } } return sb . toString ( ) ; }
target:  convert a string array to string list