Here you can find the source of convertArrayToString(String[] strArray)
private static final String convertArrayToString(String[] strArray)
//package com.java2s; public class Main { private static final String convertArrayToString(String[] strArray) { StringBuffer strList = new StringBuffer(); if (strArray != null) { for (int i = 0; i < strArray.length; i++) { if (i != 0) { strList.append(","); }/*from www .j a v a 2s.c om*/ strList.append(strArray[i]); } } return strList.toString(); } }