Here you can find the source of intToString(int[] array)
public static String intToString(int[] array)
//package com.java2s; //License from project: Open Source License public class Main { public static String intToString(int[] array) { StringBuilder ret = new StringBuilder(); for (int i = 0; i < array.length; i++) { ret.append(Integer.toString(array[i])).append(' '); }/*from www . j a v a2s .c om*/ return ret.toString().trim(); } }