Java Integer Array to String intArrayToString(String tag, int[] arr)

Here you can find the source of intArrayToString(String tag, int[] arr)

Description

int Array To String

License

Open Source License

Declaration

public static String intArrayToString(String tag, int[] arr) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String intArrayToString(String tag, int[] arr) {
        StringBuilder builder = new StringBuilder("\"");
        builder.append(tag + "\"" + ":[");
        for (int i = 0, len = arr.length; i < len - 1; i++)
            builder.append(arr[i] + ",");
        builder.append(arr[arr.length - 1] + "]");
        return builder.toString();
    }//from   w ww  .  j a v  a  2 s. co  m
}

Related

  1. intArrayToString(int[] iarray, int count)
  2. intArrayToString(int[] intArray)
  3. intArrayToString(int[] intArray, String conv)
  4. intArrayToString(int[] ints)
  5. intArrayToString(int[] ints)
  6. intArrayToStringArray(int[] ids)
  7. intsToString(int ints[])
  8. intsToString(int[] ary)
  9. intsToString(int[] b)