Here you can find the source of arrayPrint(T[] arr)
private static <T> String arrayPrint(T[] arr)
//package com.java2s; //License from project: Open Source License public class Main { private static <T> String arrayPrint(T[] arr) { String retval = "[" + arr[0].toString(); for (int i = 1; i < arr.length; i++) { retval = retval + ", " + arr[i]; }/*w w w.j av a2 s. c o m*/ retval = retval + "]"; return retval; } }