Here you can find the source of hashCodeOfStringArray(String[] stringArray)
public static int hashCodeOfStringArray(String[] stringArray)
//package com.java2s; //License from project: Apache License public class Main { public static int hashCodeOfStringArray(String[] stringArray) { if (stringArray == null) { return 0; }/*from ww w .j av a2 s. c o m*/ int hashCode = 17; for (int i = 0; i < stringArray.length; i++) { String value = stringArray[i]; hashCode = hashCode * 31 + (value == null ? 0 : value.hashCode()); } return hashCode; } }