Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7768547
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:56:30+00:00 2026-06-01T15:56:30+00:00

Okay guys, I am working hashmap, using one of my classes as Key. My

  • 0

Okay guys, I am working hashmap, using one of my classes as Key.

My question is: When I get the correct item one time, is it possible to get a bad item on another time?

I mean, I implemented a hashcode algorithm that I view here on another question.
And sometimes I get the correct item, another times I dont get it.

Any guess ? is it possible to find one time and right the second time cant find it ?
I am not deleting it !

Thanks alot in advance !

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T15:56:31+00:00Added an answer on June 1, 2026 at 3:56 pm

    Of course not, you need consistency. A hash value must always be the same for the same item if calculated with the same algorithm.

    A possible answer to your problem is that you are calculating using some internal value of your object that is modified between first search and second search.

    You can possibly get collisions in the sense that two values are mapped to the same hash value but you can’t have something that the first time works while the second time it doesn’t.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay guys I have a question about positioning tables within DIV's using CSS. I
Okay guys, I have read through all the other posts and question on jQuery
Okay, some Guys will know what i mean and edit my Question but they
Okay guys! Right now, I am using Descending for my data because i want
Okay, since none of you guys like my question, let me rephrase it. User
Okay guys, maybe you can help me out with this one. I'm about ready
Okay guys, I've got one thats got me baffled. I've done some searching for
Possible Duplicate: How Turn on only Camera flash light programmatically in android? okay guys,
Okay, I have a question guys. I want to remote upload (copy an image
Okay guys I have a database I have been working on for days now.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.