Java String from List stringifyList(List items)

Here you can find the source of stringifyList(List items)

Description

stringify List

License

Open Source License

Declaration

public static String stringifyList(List<String> items) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.List;

public class Main {
    public static final String ITEM_SEP = "!@#$";

    public static String stringifyList(List<String> items) {
        StringBuffer buf = new StringBuffer();

        for (String s : items) {
            buf.append(s);//w  w  w. j  a  v  a 2 s  .c om
            buf.append(ITEM_SEP);
        }
        return (buf.toString());
    }
}

Related

  1. stringExistInList(String value, List searchList)
  2. stringFromLines(List lines)
  3. stringFromList(List list)
  4. stringfyList(List ls)
  5. stringify(List entries)
  6. stringList(String prefix, String suffix, String separator, Object... objects)
  7. stringList2String(final String suffix, final List list)
  8. stringList2String(List list, String separator)
  9. stringListEquals(List left, List right)