JavaScript has Array.join()
Array.join()
js>[\"Bill\",\"Bob\",\"Steve\"].join(\" and \") Bill and Bob and Steve
Does Java have anything
Try this:
java.util.Arrays.toString(anArray).replaceAll(", ", ",") .replaceFirst("^\\[","").replaceFirst("\\]$","");