Android Array to String Convert convertToString(long[] ids)

Here you can find the source of convertToString(long[] ids)

Description

convert To String

Declaration

public static String convertToString(long[] ids) 

Method Source Code

//package com.java2s;

public class Main {
    public static String convertToString(long[] ids) {
        StringBuilder str = new StringBuilder("");
        if (ids != null && ids.length > 0) {
            for (long id : ids) {
                str.append(id).append(",");
            }/*from   w w w  . j av a  2  s. co m*/
            str.setCharAt(str.length() - 1, ' ');
        }
        return str.toString();
    }
}

Related

  1. ArraysToString(String[] arrays)
  2. ArrayToString(Object[] ary)
  3. stringArrayToString(String[] array)
  4. intArraysToString(int[] arrays)
  5. stringArrayToString(String[] array)