Javamex

Java discussion forum to accompany the Javamex web site.

On the page with the code for the get() and put() methods for the hashtable: I assume "hc" in the second line of each function should be "hash", correct?

 

- Mike

Views: 210

Reply to This

Replies to This Discussion

Sorry, yes I assume you're referring to here:

 

  http://www.javamex.com/tutorials/collections/64_bit_hash_map_implem...

 

Looks like there was a cut + paste error -- I will correct!

OK, now fixed on the page. The offending line reads:

 

int hc = (int) hash & hashMask;

Reply to Discussion

RSS

© 2024   Created by Neil Coffey.   Powered by

Badges  |  Report an Issue  |  Terms of Service