Here you can find the source of stringify(int arr[])
public static String stringify(int arr[])
//package com.java2s; import java.util.ArrayList; import java.util.List; public class Main { public static String stringify(int arr[]) { List<Integer> list = new ArrayList<Integer>(); for (int i = 0; i < arr.length; i++) { list.add(arr[i]);/*ww w . jav a 2s .c o m*/ } return list.toString(); } }