Here you can find the source of intsToString(int[] ary)
public static final String intsToString(int[] ary)
//package com.java2s; public class Main { /** Converts an array of numbers to a string. *///from ww w. j a v a2 s .c om public static final String intsToString(int[] ary) { if (ary == null || ary.length == 0) return ""; final StringBuffer sb = new StringBuffer(50); for (int j = 0; j < ary.length; ++j) { if (j > 0) sb.append(','); sb.append(ary[j]); } return sb.toString(); } }