A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Naveen R R
Joined: May 04, 2001
Jul 11, 2001 14:10:00
Could someone provide me with an example of hashcode()? I need to get the hashcode for each attribute, sum them and rehash them.
And, how does the equals() fit in here?
Author and all-around good cowpoke
Joined: Mar 22, 2000
Jul 11, 2001 17:12:00
Every Java class has a hashCode() method - just call it for the
containing your attribute. Look at the source code for
for an example.
Java 2 Exam Prep
Java 2 (Exam Cram)
Java Developer's Guide to
Java Developer's Guide to E-Commerce with XML and JS
Java Resources at
I agree. Here's the link:
equlas() and hashCode()
need help with the space-time continium
What is hashCode?
Hashcode for HashMap not dependent on the hashcode of key added?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014