Here you can find the source of dumpArray(T[] ts)
public static <T> String dumpArray(T[] ts)
//package com.java2s; //License from project: Open Source License public class Main { public static <T> String dumpArray(T[] ts) { if (ts == null) { return "NULL ARRAY"; }/*from w w w .j a va 2s. co m*/ StringBuilder sb = new StringBuilder(); int num = 0; for (T t : ts) { sb.append(t); if (num != ts.length - 1) { sb.append(", "); } num++; } return sb.toString(); } }