Java tutorial
//package com.java2s; import java.util.ArrayList; public class Main { public static String emailListToEmailCSV(ArrayList<String> emails) { String retStr = ""; for (int i = 0; i < emails.size(); i++) { if (i > 0) { retStr += ","; } retStr += emails.get(i); } return retStr; } }