Android String Array Join join(String[] strings, String separator)

Here you can find the source of join(String[] strings, String separator)

Description

join

Declaration

public static String join(String[] strings, String separator) 

Method Source Code

//package com.java2s;

public class Main {
    public static String join(String[] strings, String separator) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < strings.length; i++) {
            if (i != 0)
                sb.append(separator);//  w w  w  .  ja va  2 s . c  om
            sb.append(strings[i]);
        }
        return sb.toString();
    }
}

Related

  1. concatenate(String[] elements, String delimiter)
  2. makeDivideString(String[] arr_str, String divide_str)
  3. join(String spliter, Object[] arr)
  4. joinStrings(String joiner, Iterable parts)
  5. join(String spliter, Object[] arr)
  6. join(String[] s, String glue)
  7. join(String delimiter, String[] strings)
  8. join(int[] arr, String delimiter)
  9. join(String[] parts, String delimiter)