Java tutorial
//package com.java2s; //License from project: Apache License import android.text.TextUtils; public class Main { public static <T> String ArrayAsString(final T[] array) { StringBuilder sb = new StringBuilder(); sb.append("[").append(TextUtils.join(",", array)).append("]"); return sb.toString(); } }