Android Array to String Convert ArrayToString(Object[] ary)

Here you can find the source of ArrayToString(Object[] ary)

Description

Array To String

Declaration

public static String ArrayToString(Object[] ary) 

Method Source Code

//package com.java2s;

public class Main {
    public static String ArrayToString(Object[] ary) {

        if (ary == null) {
            return null;
        }//from  www.ja  va2  s . com

        StringBuilder sb = new StringBuilder();
        sb.append("{");
        for (int i = 0; i < ary.length; ++i) {
            sb.append(ary[i].toString());
            sb.append(",");
        }
        sb.append("}");
        return sb.toString();
    }
}

Related

  1. toString(byte[] buffer)
  2. toString(final byte[] bytes)
  3. toString(final byte[] bytes, String charset)
  4. toStringArrayToString(String[] array)
  5. ArraysToString(String[] arrays)
  6. stringArrayToString(String[] array)
  7. intArraysToString(int[] arrays)
  8. stringArrayToString(String[] array)
  9. convertToString(long[] ids)