Here you can find the source of combine(List r, char sep)
private static String combine(List r, char sep)
//package com.java2s; //License from project: Apache License import java.util.List; public class Main { private static String combine(List r, char sep) { StringBuilder buf = new StringBuilder(r.get(0).toString()); for (int i = 1; i < r.size(); i++) { buf.append(sep);/* w ww . j a v a2 s . c om*/ buf.append(r.get(i)); } return buf.toString(); } }