Here you can find the source of intArrayToString(int[] ints)
private static String intArrayToString(int[] ints)
//package com.java2s; public class Main { private static String intArrayToString(int[] ints) { StringBuffer sb = new StringBuffer(); if (ints != null) { for (int i = 0; i < ints.length; i++) { if (i != 0) { sb.append(", "); }//from ww w . j a va2s .c om sb.append(ints[i]); } } else { sb.append("null"); } return sb.toString(); } }