Java Hash String hashArrayToString(int a[])

Here you can find the source of hashArrayToString(int a[])

Description

hash Array To String

License

Apache License

Declaration

public static String hashArrayToString(int a[]) 

Method Source Code

//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
}

Related

  1. hash(String string)
  2. hash(String string, int length)
  3. hash(String strPlain)
  4. hash32(String data)
  5. hashAlgToId(String hashAlg)
  6. hashbang(final String historyToken)
  7. hashcode(String name)
  8. hashCode(String s)
  9. hashCode(String sIn)