hashCode and equals
posted 14 years ago
Andy, Try compiling the code example I posted, it'll write out the hashCode(). Also, the JavaDocs are a good source of this type of information. In short, hashCode() does just what it says, returns a hash value for the object for use in data structures such as a hashtable.