public static String arrayToCommaDelimitedString(Object[] strings){
  if (strings == null) {
    return "";
  }
  StringBuilder builder=new StringBuilder();
  for (int i=0; i < strings.length; i++) {
    if (i > 0) {
      builder.append(",");
    }
    builder.append(String.valueOf(strings[i]));
  }
  return builder.toString();
}

public static String arrayToCommaDelimitedString ( Object [ ] strings ) { if ( strings == null ) { return "" ; } StringBuilder builder = new StringBuilder ( ) ; for ( int i = 0 ; i < strings . length ; i ++ ) { if ( i > 0 ) { builder . append ( "," ) ; } builder . append ( String . valueOf ( strings [ i ] ) ) ; } return builder . toString ( ) ; }
turns this string array in one comma - delimited string .
