Here you can find the source of concatArray(String[] array, int start, String def)
public static String concatArray(String[] array, int start, String def)
//package com.java2s; //License from project: Open Source License public class Main { public static String concatArray(String[] array, int start, String def) { if (array.length <= start) return def; if (array.length <= start + 1) return array[start]; String ret = array[start]; for (int i = start + 1; i < array.length; i++) { ret += " " + array[i]; }//from w ww . j av a 2 s . co m return ret; } }