Here you can find the source of array2string(String array[])
public static String array2string(String array[])
//package com.java2s; //License from project: Apache License public class Main { public static String array2string(String array[]) { if (array == null) { return ""; }/*from w w w . ja v a2s. c o m*/ String str = ""; for (int i = 0; i < array.length; i++) { str += array[i] + ","; } return str.substring(0, str.length() - 1); } }