Here you can find the source of intArrayToString(int vals[])
Parameter | Description |
---|---|
vals | Array to convert |
public static String intArrayToString(int vals[])
//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(); } }