Here you can find the source of printArrayToString(Object[] array)
public static String printArrayToString(Object[] array)
//package com.java2s; public class Main { /**//from w ww. j av a2s. c om * Print an Object ArrayHelper to a String. */ public static String printArrayToString(Object[] array) { if (array == null) return "null"; StringBuffer buffer = new StringBuffer(); buffer.append('{'); for (int i = 0; i < array.length; i++) { if (i > 0) buffer.append(','); buffer.append(array[i]); } buffer.append('}'); return buffer.toString(); } }