Java Array to String convertArrayToString(String[] strArray)

Here you can find the source of convertArrayToString(String[] strArray)

Description

convert Array To String

License

Open Source License

Declaration

private static final String convertArrayToString(String[] strArray) 

Method Source Code

//package com.java2s;

public class Main {
    private static final String convertArrayToString(String[] strArray) {
        StringBuffer strList = new StringBuffer();
        if (strArray != null) {
            for (int i = 0; i < strArray.length; i++) {
                if (i != 0) {
                    strList.append(",");
                }/*from   www .j a  v a 2s.c om*/
                strList.append(strArray[i]);
            }
        }
        return strList.toString();
    }
}

Related

  1. convertArrayToString(String[] array, char seperator)
  2. convertArrayToString(String[] array, String separator)
  3. convertArrayToString(String[] array, String separator)
  4. convertArrayToString(String[] fields, String delimiter)
  5. convertArrayToString(String[] idArray)
  6. convertByteToString(byte[] objectGuid)
  7. convertToString(String[] args)
  8. convertToString(String[] values, String separator)
  9. deepToString(Object[] a)