Here you can find the source of arrayToString(final T... data)
@SafeVarargs public static <T> String arrayToString(final T... data)
//package com.java2s; //License from project: Apache License public class Main { @SafeVarargs public static <T> String arrayToString(final T... data) { String sdata = ""; for (final T o : data) { sdata += "," + o; }// w w w .jav a2 s . c o m return sdata.substring(1); } public static String arrayToString(final boolean... data) { String sdata = ""; for (final boolean o : data) { sdata += o ? 1 : 0; } return sdata; } }