Here you can find the source of arrayToStr(String[] strArray)
public static String arrayToStr(String[] strArray)
//package com.java2s; //License from project: Open Source License public class Main { public static String arrayToStr(String[] strArray) { StringBuffer strBuffer = new StringBuffer(); for (String str : strArray) { strBuffer.append(strBuffer.length() > 0 ? "," : "").append(str); }/* w w w . j a v a2 s .c om*/ return strBuffer.toString(); } }