A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
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
rocket mass heater
need help with the space-time continium
equlas() and hashCode()
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