Java CSV String Convert csvString(Object[] objects)

Here you can find the source of csvString(Object[] objects)

Description

Convert an array of objects to a CSV string

License

Open Source License

Declaration

public static String csvString(Object[] objects) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**/*from  w  w  w.j a va2s  . c o m*/
     * Convert an array of objects to a CSV string
     */
    public static String csvString(Object[] objects) {
        String str = objects[0].toString();
        for (int i = 1; i < objects.length; i++) {
            str += "," + objects[i].toString();
        }
        return str;
    }
}

Related

  1. csvDecodeString(String value)
  2. csvDelimiter(String line)
  3. csvEncode(int value)
  4. csvEncodeString(String value)
  5. csvQuote(String value)
  6. csvstring(Object[] str)
  7. csvTitleToTag(String title, int index)
  8. csvToArray(String dirs)
  9. csvToArray(String line)