Android examples for java.lang:String Join
join List of string to string
import java.util.List; public class Main{ public static String join(String separator, List<String> data) { StringBuilder sb = new StringBuilder(); for (String item : data) { if (sb.length() > 0) sb.append(separator);/*w w w . j a va2 s .c om*/ sb.append(item); } return sb.toString(); } }