Here you can find the source of intArrayToString(int[] intArray, String conv)
public static String intArrayToString(int[] intArray, String conv)
//package com.java2s; //License from project: Apache License public class Main { public static String intArrayToString(int[] intArray, String conv) { String strReturn = ""; int length = intArray.length; if (length > 0) { for (int i = 0; i < length - 1; i++) { strReturn += intArray[i] + conv; }/* ww w.j av a2 s . c om*/ strReturn += intArray[length - 1]; } return strReturn; } }