JavaScript has Array.join()
js>[\"Bill\",\"Bob\",\"Steve\"].join(\" and \")
Bill and Bob and Steve
Does Java have anything
You can do this:
String aToString = java.util.Arrays.toString(anArray);
// Do not need to do this if you are OK with '[' and ']'
aToString = aToString.substring(1, aToString.length() - 1);
Or a one-liner (only when you do not want '[' and ']')
String aToString = java.util.Arrays.toString(anArray).substring(1).replaceAll("\\]$", "");
Hope this helps.