Here you can find the source of hash(String string)
Parameter | Description |
---|---|
string | The string. |
public static int hash(String string)
//package com.java2s; //License from project: Open Source License public class Main { /**//from w w w. j av a 2 s .c om * Hashes the specified string. * * @param string The string. * @return The hash. */ public static int hash(String string) { return string.hashCode(); } }