File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Hashcode tutorial/Primer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Hashcode tutorial/Primer" Watch "Hashcode tutorial/Primer" New topic
Author

Hashcode tutorial/Primer

ed de jongh
Greenhorn

Joined: Nov 27, 2002
Posts: 6
Hi I would like to know what the three rules (as per (Don) of hashcode are etc. Any pointers to tutorials etc would b gr8
ed
Alfred Kemety
Ranch Hand

Joined: Aug 14, 2002
Posts: 279
My advice, read the hashCode() API documentation.


Alfred Raouf - Egypt - SCJP 1.4<br />Kemety.equals(Egyptian) // returns true
ed de jongh
Greenhorn

Joined: Nov 27, 2002
Posts: 6
Thanks Alf
Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
ed,
Welcome to Javaranch, a friendly place for Java greenhorns
Please find below a link to a discussion about hashcodes:
http://www.coderanch.com/t/239767/java-programmer-SCJP/certification/hashCode
Also check out the excellent article by Manish Hatwalne:
Equals And Hash Code by Manish Hatwalne

We ain't got many rules 'round these parts, but we do got one. Please change your displayed name to comply with the JavaRanch Naming Policy.
Thanks Pardner! Hope to see you 'round the Ranch!
[ November 27, 2002: Message edited by: Valentin Crettaz ]

SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
ed de jongh
Greenhorn

Joined: Nov 27, 2002
Posts: 6
Thanks Valentin
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Hashcode tutorial/Primer
 
Similar Threads
Why is this not running as expected?
String to int
equals() and hashCode()
need help with the space-time continium
Why override equals() method ?