Here you can find the source of concatArray(String string, String[] words)
public static String concatArray(String string, String[] words)
//package com.java2s; //License from project: Apache License public class Main { public static String concatArray(String string, String[] words) { StringBuilder concat = new StringBuilder(); for (int i = 0; i < words.length; i++) { concat.append(words[i] + " "); }/*from w ww . j a v a 2 s .co m*/ return concat.toString().trim(); } }