String.hashCode()

Signature

int hashCode (String s1)

Domain

action, condition

Description

Returns a hash code for the passed String.

Parameters

NameTypeDescription
s1StringA String to compute a hashcode for.

Returns

TypeDescription
intA hash code for the passed String.

Cautions

none

Example


int hash = hashCode ("This is a test");

Result is:
hash contains: 1413968325