Java List Combine combine(List r, char sep)

Here you can find the source of combine(List r, char sep)

Description

combine

License

Apache License

Declaration

private static String combine(List r, char sep) 

Method Source Code

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

Related

  1. combine(final List r, final char sep)
  2. combine(final List dataChunks)
  3. combine(final List list, final List list2)
  4. combine(int sign, List exponentBits, List mantissaBits)
  5. combine(List> lists)
  6. combine(List commands, int startAt, int endAt)
  7. combine(List strlist, String delimiter)
  8. combine(List tokens, String separator)