Java List Concatenate concat(List lista, String sep, StringBuilder destino)

Here you can find the source of concat(List lista, String sep, StringBuilder destino)

Description

concat

License

Open Source License

Declaration

public static void concat(List<StringBuilder> lista, String sep, StringBuilder destino) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.util.Iterator;
import java.util.List;

public class Main {

    public static void concat(List<StringBuilder> lista, String sep, StringBuilder destino) {
        Iterator<StringBuilder> it = lista.iterator();
        while (it.hasNext()) {
            destino.append(it.next());/*from   w w  w  . j  a  v a  2 s. c  om*/
            if (it.hasNext()) {
                destino.append(sep);
            }
        }
    }
}

Related

  1. concat(List items, String separator)
  2. concat(List strings, String separator)
  3. concat(List tokens)
  4. concat(List words)
  5. concat(List... lists)
  6. concat(List a, List b)
  7. concat(List collection1, List collection2)
  8. concat(List l1, List l2)
  9. concat(List list, T... items)