Here you can find the source of arrayToReadableString(String[] array)
public static String arrayToReadableString(String[] array)
//package com.java2s; //License from project: LGPL public class Main { public static String arrayToReadableString(String[] array) { if ((array == null) || (array.length == 0)) { return ""; }//from w ww . j a v a 2 s . c o m StringBuilder sb = new StringBuilder(); for (String s : array) { sb.append(", "); sb.append(s); } return sb.substring(2); } }