Java Array to String convertArrayToString(Object[] ig, int count)

Here you can find the source of convertArrayToString(Object[] ig, int count)

Description

convert Array To String

License

Apache License

Declaration

public static String convertArrayToString(Object[] ig, int count) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {

    public static String convertArrayToString(Object[] ig, int count) {
        if (ig != null && ig.length > 0) {
            StringBuilder str = new StringBuilder("");
            for (int i = 0; i < ig.length && i < count; i++) {
                str.append(String.valueOf(ig[i])).append(",");
            }//from w  w  w  .  j  av  a 2s  .co  m
            return str.substring(0, str.length() - 1);
        }
        return "";
    }
}

Related

  1. byteMapToString(Map map)
  2. bytesToString(byte[] buffer)
  3. convertArrayToString(double[] p)
  4. convertArrayToString(Object param)
  5. convertArrayToString(Object[] array, String separator)
  6. convertArrayToString(Object[] objArr)
  7. convertArrayToString(String[] array)
  8. convertArrayToString(String[] array, char seperator)
  9. convertArrayToString(String[] array, String separator)