Here you can find the source of stringifyList(List
public static String stringifyList(List<String> items)
//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()); } }