Here you can find the source of iterableToSSV(Iterable list, String sep)
@SuppressWarnings("all") public static String iterableToSSV(Iterable list, String sep)
//package com.java2s; //License from project: Open Source License import java.util.Iterator; public class Main { @SuppressWarnings("all") public static String iterableToSSV(Iterable list, String sep) { String ret = ""; for (Iterator it = list.iterator(); it.hasNext();) { ret += it.next().toString(); if (it.hasNext()) ret += sep;/* ww w .j a v a 2 s . c o m*/ } return ret; } }