Java List Join join(List s, String sep)

Here you can find the source of join(List s, String sep)

Description

join

License

LGPL

Declaration

public static String join(List<String> s, String sep) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import java.util.List;

public class Main {
    public static String join(List<String> s, String sep) {
        String r = s.get(0);//from   w  w  w .  j a  v  a  2 s .  co  m
        for (int i = 1; i < s.size(); i++) {
            r += sep + s.get(i);
        }
        return r;
    }
}

Related

  1. join(List members, boolean quote)
  2. join(List p_sStrList, String p_sDelimiter)
  3. join(List parts, String separator)
  4. join(List paths)
  5. join(List s, String delim)
  6. join(List strings)
  7. join(List strings)
  8. join(List strings)
  9. join(List strings, String delim)