Here you can find the source of ArrayToCsv(Object[] line)
public static String ArrayToCsv(Object[] line)
//package com.java2s; //License from project: Open Source License public class Main { public static String ArrayToCsv(Object[] line) { StringBuilder csvLine = new StringBuilder(); for (Object obj : line) { csvLine.append(obj.toString()).append(","); }// www . j a v a2s . co m csvLine.setCharAt(csvLine.length() - 1, '\n'); return csvLine.toString(); } }