Here you can find the source of printArray(Object[] strArray, String split)
public static String printArray(Object[] strArray, String split)
//package com.java2s; public class Main { public static String printArray(Object[] strArray, String split) { String result = ""; for (int i = 0; i < strArray.length - 1; i++) { result += String.valueOf(strArray[i]) + split; }//from ww w.j av a2 s . co m result += strArray[strArray.length - 1]; return result; } }