public static String arrayToList ( String [ ] array , String delim ) { String result = "" ; for ( int i = 0 ; i < array . length ; i ++ ) { result += array [ i ] + ( ( i == ( array . length - 1 ) ) ? "" : delim ) ; } return result ; }
Converts an array of strings into a delimeter seperated string .