Java String to convertStringArrayToString(String[] value, String separator)

Here you can find the source of convertStringArrayToString(String[] value, String separator)

Description

convert String Array To String

License

Open Source License

Declaration

public static String convertStringArrayToString(String[] value, String separator) 

Method Source Code

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

public class Main {
    public static String convertStringArrayToString(String[] value, String separator) {
        if (value.length == 0) {
            return "";
        }/* w ww  .  j a v a 2 s . c  om*/
        StringBuilder sb = new StringBuilder();
        for (String v : value) {
            sb.append(v);
            sb.append(separator);
        }
        sb.setLength(sb.length() - separator.length());
        return sb.toString();
    }
}

Related

  1. convertString(String value, Class type)
  2. convertString2Bytes(String str)
  3. convertString2GSonString(String str)
  4. convertStringArrayToFloatArray(String[] num)
  5. convertStringArrayToString(String[] a_asStrings, String a_sDelim)
  6. convertStringFormat(String property)
  7. convertStringsToTextSet(String[] values)
  8. convertStringToArray(String str)
  9. convertStringToColor(String color)