Here you can find the source of arrayToString(int[] array)
public static String arrayToString(int[] array)
//package com.java2s; //License from project: Apache License public class Main { public static String arrayToString(int[] array) { StringBuilder sb = new StringBuilder(); for (int i = array.length - 1; i >= 0; i--) { sb.append(array[i]);/*from w ww.j a va 2 s .c om*/ } return sb.toString(); } }