Here you can find the source of intArray2HashCode(int[] xs)
public static int intArray2HashCode(int[] xs)
//package com.java2s; //License from project: Apache License public class Main { public static int intArray2HashCode(int[] xs) { int hc = 0; for (int i = 0; i < xs.length; ++i) { hc = 31 * hc + xs[i];//w w w . ja v a 2s . c om } return hc; } }