public static int hashWord(String sWord){
  int iCnt=0, iRes=0, iLen=sWord.length();
  for (iCnt=0; iCnt < iLen; iCnt++)   iRes+=(int)sWord.charAt(iCnt);
  return (sWord.length() * 8192 + iRes);
}

public static int hashWord ( String sWord ) { int iCnt = 0 , iRes = 0 , iLen = sWord . length ( ) ; for ( iCnt = 0 ; iCnt < iLen ; iCnt ++ ) iRes += ( int ) sWord . charAt ( iCnt ) ; return ( sWord . length ( ) * 8192 + iRes ) ; }
calculates a hash for the word : ( size * 8192 ) + ascii code sum .
