Android List to String Convert convertStringArrayToString( List stringList, String seperator)

Here you can find the source of convertStringArrayToString( List stringList, String seperator)

Description

convert String Array To String

Declaration

public static String convertStringArrayToString(
            List<String> stringList, String seperator) 

Method Source Code

//package com.java2s;
import java.util.List;

public class Main {
    public static String convertStringArrayToString(
            List<String> stringList, String seperator) {

        String value = "";
        for (int i = 0; i < stringList.size(); i++) {

            String selectedItemValue = stringList.get(i);

            if (i != 0) {
                value += seperator + " ";
            }//from  ww  w  .j  a v  a 2s  . c  om

            value += selectedItemValue;
        }

        return value;
    }
}

Related

  1. listLongToString(List inputList)
  2. listStrToString(List inputList)
  3. listToString(List list)
  4. listToString(List list, String delimiter)
  5. getCommaDelimitedString(List input)