Java Integer Array to String intArrayToString(int vals[])

Here you can find the source of intArrayToString(int vals[])

Description

Convert an int array to a string

License

Apache License

Parameter

Parameter Description
vals Array to convert

Return

The text

Declaration

public static String intArrayToString(int vals[]) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    /** Convert an int array to a string 
     * /*from   w ww  . ja va2s. c  o  m*/
     * @param vals Array to convert
     * @return The text
     */
    public static String intArrayToString(int vals[]) {
        StringBuilder buf = new StringBuilder();
        for (int i = 0; i < vals.length; ++i) {
            buf.append((char) vals[i]);
        }
        return buf.toString();
    }
}

Related

  1. intArray2string(int intarr[])
  2. intArray2String(int[] value)
  3. intArray2String(int[] xs)
  4. intArrayAsString(int[] a)
  5. intArrayToString(final int... ints)
  6. intArraytoString(int[] a)
  7. intArrayToString(int[] a)
  8. intArrayToString(int[] a, String separator)
  9. intArrayToString(int[] arr)