Java Array to String convertArrayToString(String[] idArray)

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

Description

convert Array To String

License

Open Source License

Declaration

public static String convertArrayToString(String[] idArray) 

Method Source Code

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

public class Main {
    public static String convertArrayToString(String[] idArray) {
        StringBuffer sb = new StringBuffer();
        for (Object obj : idArray) {
            sb.append(obj);//from  ww  w. j  a v  a2  s  . c o m
            sb.append(",");
        }
        sb.delete(sb.length() - 1, sb.length());
        return sb.toString();
    }
}

Related

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