• Post Reply Bookmark Topic Watch Topic
  • New Topic

hashcode help  RSS feed

 
Murali Jaya Rao
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
can anyone help how to write hashcode() for string array.which contains keys,provide a simple example.
 
Campbell Ritchie
Marshal
Posts: 56525
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have already been told that you can't override the hashCode method of an array.
you should use the individual Strings as keys, which I think you are already doing.
Suggest you ask a bartender to close this thread before it causes any more confusion.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!