Java Array to String convertArrayToString(Object param)

Here you can find the source of convertArrayToString(Object param)

Description

convert Array To String

License

Open Source License

Declaration

public static String convertArrayToString(Object param) 

Method Source Code

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

public class Main {
    public static String convertArrayToString(Object param) {
        String ids = "";
        if (param != null) {
            for (String paramValue : (String[]) param) {
                ids += paramValue + ",";
            }/* w  w w  .  j a  va  2 s.c  o m*/
            ids = ids.replaceAll(",$", "");
        }

        return ids;
    }
}

Related

  1. asStringOn(StringBuilder sb, Object[] items, String separator)
  2. bitsToString(int[] arr)
  3. byteMapToString(Map map)
  4. bytesToString(byte[] buffer)
  5. convertArrayToString(double[] p)
  6. convertArrayToString(Object[] array, String separator)
  7. convertArrayToString(Object[] ig, int count)
  8. convertArrayToString(Object[] objArr)
  9. convertArrayToString(String[] array)