Here you can find the source of array2String(E[] array)
public static <E> String array2String(E[] array)
//package com.java2s; //License from project: Open Source License public class Main { public static <E> String array2String(E[] array) { return array2String(array, 0, array.length); }/* www.j av a 2 s .co m*/ public static <E> String array2String(E[] array, int start, int end) { StringBuffer sb = new StringBuffer(); sb.append("["); for (int i = start; i < end; i++) { sb.append(" "); sb.append(array[i]); } sb.append(" ]"); return sb.toString(); } }