Java List Join joinToString(List list)

Here you can find the source of joinToString(List list)

Description

join To String

License

Open Source License

Declaration

public static String joinToString(List<?> list) 

Method Source Code


//package com.java2s;
import java.util.List;

public class Main {

    public static String joinToString(List<?> list) {

        StringBuffer strBuf = new StringBuffer();

        if (list != null) {
            for (Object item : list) {
                strBuf.append(item.toString());
            }/*from   w w w .j av a 2s.  c o  m*/
        }

        return strBuf.toString();
    }
}

Related

  1. joinStrings(String delim, List strings)
  2. joinStrings(String joiner, List objects)
  3. joinTextWithCommas(List list)
  4. joinThreads(List threads)
  5. joinTokens(final List tokens)
  6. JoinToString(List list, String delimiter)
  7. joinUnique(List list, T element)
  8. joinWordList(List wordList, String delimiter)
  9. listToStr(List list, String joinChar)