Android Utililty Methods Array to String Convert

List of utility methods to do Array to String Convert

Description

The list of methods to do Array to String Convert are organized into topic(s).

Method

StringintArraysToString(int[] arrays)
int Arrays To String
String result = "";
if (arrays != null && arrays.length > 0) {
    for (int value : arrays) {
        result += value + " ";
    result = result.substring(0, result.length() - 1);
return result;
...
StringstringArrayToString(String[] array)
string Array To String
if (array == null || array.length == 0)
    return "";
StringBuilder string = new StringBuilder();
for (String item : array) {
    string.append(item).append(',');
return string.toString();
StringconvertToString(long[] ids)
convert To String
StringBuilder str = new StringBuilder("");
if (ids != null && ids.length > 0) {
    for (long id : ids) {
        str.append(id).append(",");
    str.setCharAt(str.length() - 1, ' ');
return str.toString();
...