Here you can find the source of stringArrayToString(String[] array)
public static String stringArrayToString(String[] array)
//package com.java2s; public class Main { public static String stringArrayToString(String[] array) { if (array == null || array.length == 0) return ""; StringBuilder string = new StringBuilder(); for (String item : array) { string.append(item).append(','); }/* ww w .j av a2 s . c om*/ return string.toString(); } }