Here you can find the source of concatString(List
Parameter | Description |
---|---|
args | a parameter |
public static String concatString(List<String> args)
//package com.java2s; //License from project: Open Source License import java.util.List; public class Main { /**// w w w . ja va2 s .c o m * * @param args * @return */ public static String concatString(List<String> args) { StringBuilder buf = new StringBuilder(); for (String arg : args) { if (buf.length() > 0) buf.append(' '); buf.append(arg); } return buf.toString(); } }