Here you can find the source of formatInts(int[] vals)
public static String formatInts(int[] vals)
//package com.java2s; // The MIT License public class Main { /**//from w ww . jav a2 s . c om * Formats an array of ints. */ public static String formatInts(int[] vals) { String res = ""; if (vals == null) res = "(null)"; else { res = "["; for (int ii = 0; ii < vals.length; ii++) { if (ii > 0) res += " "; res += vals[ii]; } res += "]"; } return res; } }