Here you can find the source of array2displaystr(Object[] datas)
public static final String array2displaystr(Object[] datas)
//package com.java2s; //License from project: Apache License public class Main { public static final String array2displaystr(Object[] datas) { if (datas == null || datas.length == 0) { return "[]"; }/*ww w . j a v a 2 s .c om*/ StringBuffer r = new StringBuffer(); r.append("["); for (int i = 0; i < datas.length && i < 11; i++) { r.append(datas[i]).append(','); } r.setCharAt(r.length() - 1, ']'); return r.toString(); } }