0

Hi,

How to get the value from a hashtable irrespective of its case...
plz reply ASAP.

Thanks in advance,
Shilpa

3
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by masijade
0

When you add the keys, upper case them, and then uppercase the "search" key when retrieving one. Otherwise, you are going to have to loop through the keys yourself using equalsIgnoreCase to find the right key.

0

How to get the value from a hashtable irrespective of its case...

Would you care to mention what does your Hashtable contain or do I have to find that out from my crystal ball.

0

When you add the keys, upper case them, and then uppercase the "search" key when retrieving one. Otherwise, you are going to have to loop through the keys yourself using equalsIgnoreCase to find the right key.

Hi,

Thanks for the reply.
I think its better to convert either to upper or lower case.

0

And, with the way the post reads, so do I. That is the reason it is formulated the way it is. The other is still an option though, which is why it was mentioned.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.