I m working on a crawler and want to hash the urls that my crawler is crawled already. I have used hashcode() function but it is returning a null value. Is there any other efficient way for hashing them .Also i want to know abt hash functions related with string values...:-/

Recommended Answers

All 2 Replies

Why doesn't the hashCode() method of URL suffice your needs?

How can hashCode be returning null ? hashCode returns an int .

Also, if you are using the URL class, don't. Its equals and hashCode methods are broken. Use the URI class instead.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.