Here you can find the source of intArrayToString(int[] a)
public static String intArrayToString(int[] a)
//package com.java2s; //License from project: Open Source License public class Main { public static String intArrayToString(int[] a) { StringBuilder retval = new StringBuilder(); for (int val : a) { retval.append(String.format("%d ", val)); }/* ww w.j a v a2s . com*/ return retval.toString(); } }