Here you can find the source of ArrayToString(Object[] ary)
public static String ArrayToString(Object[] ary)
//package com.java2s; public class Main { public static String ArrayToString(Object[] ary) { if (ary == null) { return null; }//from www.ja va2 s . com StringBuilder sb = new StringBuilder(); sb.append("{"); for (int i = 0; i < ary.length; ++i) { sb.append(ary[i].toString()); sb.append(","); } sb.append("}"); return sb.toString(); } }