Convert int Arrays To String - Android java.lang

Android examples for java.lang:array convert

Description

Convert int Arrays To String

Demo Code

import android.text.Spannable;
import android.text.SpannableStringBuilder;
import android.text.style.ForegroundColorSpan;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Main{

    public static String intArraysToString(int[] arrays) {
        String result = "";
        if (arrays != null && arrays.length > 0) {
            for (int value : arrays) {
                result += value + " ";
            }/*w  w w.j a  v a 2 s  . c  om*/
            result = result.substring(0, result.length() - 1);
        }
        return result;
    }

}

Related Tutorials