Java tutorial
public abstract class Main { public static String convertToCommaDelimited(String[] list) { StringBuffer ret = new StringBuffer(""); for (int i = 0; list != null && i < list.length; i++) { ret.append(list[i]); if (i < list.length - 1) { ret.append(','); } } return ret.toString(); } }