Here you can find the source of combineArray(String[] args)
public static String combineArray(String[] args)
//package com.java2s; public class Main { public static String combineArray(String[] args) { String tmp = ""; for (String str : args) tmp += str + " "; return tmp.substring(0, tmp.length() - 1); }/*from w w w .jav a 2 s . c o m*/ }