Introduction
Here is the source code for Main.java
Source
//package com.java2s;
public class Main {
public static int javaDefaultHash(String str) {
int h = 0;
int off = 0;
int len = str.length();
for (int i = 0; i < len; i++) {
h = 31 * h + str.charAt(off++);
}
return h;
}
}