question: public static String arrayToDelimitedString ( Object [ ] arr , String delim ) { if ( arr == null ) { return "" ; } StringBuffer sb = new StringBuffer ( ) ; for ( int i = 0 ; i < arr . length ; i ++ ) { if ( i > 0 ) { sb . append ( delim ) ; } sb . append ( arr [ i ] ) ; } return sb . toString ( ) ; }
target:  Convenience method to return a String array as a delimited (e.g. CSV) String. E.g. useful for toString() implementations.