Here you can find the source of hashArrayToString(int a[])
public static String hashArrayToString(int a[])
//package com.java2s; //License from project: Apache License public class Main { private static final String DELIMITER = "a"; public static String hashArrayToString(int a[]) { StringBuffer sb = new StringBuffer(); for (int i = 0; i < a.length; i++) sb.append(i + 1).append(DELIMITER).append(a[i]).append(" "); return sb.toString().trim(); }// w w w.j a v a 2 s .c o m }