Java List Concatenate concatString(List args)

Here you can find the source of concatString(List args)

Description

concat String

License

Open Source License

Parameter

Parameter Description
args a parameter

Declaration

public static String concatString(List<String> args) 

Method Source Code


//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();
    }
}

Related

  1. concatListToString(List suggestedList)
  2. concatName(String name, List names)
  3. concatNodeList(List list)
  4. concatPathTokens(String root, List tokens)
  5. concatRefs(List refs)
  6. concatStrings(List values, String separator)
  7. concatSuper(List collection1, List collection2)
  8. concatSynopsises( List prefixes, List ss)
  9. concatTwoList(List fromList, List toList)