Java Array Flatten flattenStringArray(String[] s_array, String delimiter)

Here you can find the source of flattenStringArray(String[] s_array, String delimiter)

Description

flatten String Array

License

Open Source License

Declaration

public static String flattenStringArray(String[] s_array, String delimiter) 

Method Source Code

//package com.java2s;

public class Main {
    public static String flattenStringArray(String[] s_array, String delimiter) {
        StringBuffer flat = new StringBuffer();
        for (int i = 0; i < s_array.length; i++) {
            flat.append(s_array[i]).append(delimiter);
        }/*from  w  w  w  .ja  v  a  2  s  . com*/
        return flat.toString();
    }
}

Related

  1. flattenArray(Object[] words)
  2. flattenArray(String[] aString)
  3. flattenBytes(byte[] b)
  4. flattenIndices(int[] indices, int[] extents)
  5. flattenNTriples(final String[] values)