Java Array to String array2String(String[] array)

Here you can find the source of array2String(String[] array)

Description

array String

License

Open Source License

Declaration

public static String array2String(String[] array) 

Method Source Code

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

public class Main {
    public static String array2String(String[] array) {
        StringBuffer buffer = new StringBuffer();
        for (int i = 0; i < array.length; i++) {
            buffer.append(",").append(array[i]);
        }/*  w  ww . j ava 2  s.  com*/
        return buffer.toString().replaceFirst(",", "");
    }
}

Related

  1. array2String(long[] array)
  2. array2String(long[] array)
  3. array2String(Object[] a, int size)
  4. array2string(Object[] array)
  5. array2String(Object[] objs)
  6. array2String(String[] array)
  7. array2String(String[] category)
  8. array2String(String[] p, String spliter)
  9. Array2String(String[] values)