Java tutorial
//package com.java2s; public class Main { public static String toCsv(String[] array) { StringBuffer result = new StringBuffer(); for (int s = 0; s < array.length; s++) { if (s > 0) result.append(", "); result.append(array[s]); } return result.toString(); } }