Java Iterable to List iterableToSSV(Iterable list, String sep)

Here you can find the source of iterableToSSV(Iterable list, String sep)

Description

iterable To SSV

License

Open Source License

Declaration

@SuppressWarnings("all")
    public static String iterableToSSV(Iterable list, String sep) 

Method Source Code

//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;
    }
}

Related

  1. iterableToCollection(Iterable c, Collection list)
  2. iterableToCollection(Iterable c, Collection list)
  3. iterableToList(Iterable iterable)
  4. iterableToList(Iterable input)
  5. iterableToList(Iterable iterable)
  6. toList(Iterable i)
  7. toList(Iterable items)
  8. toList(Iterable iter)
  9. toList(Iterable values)