Customizing the get method in HashMap
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/8236945/case-insensitive-string-as-hashmap-key">Case insensitive string as HashMap key</a>  </p>
</blockquote>



<p>I have a Hashmap with a String as the key and an integer as the value. Now, I am using the get method to get the values, where the string matches with the key value.</p>

<hr>

<pre><code>HashMap&lt;String,Integer&gt; map= new HashMap&lt;String,Integer&gt;();
// Populate the map

System.out.println(map.get("mystring"));
</code></pre>

<hr>

<p>I want this string comparison to be case insensitive. Is there anyway I can do that ?</p>

<hr>

<p>For example, I want it to return the same result in the following cases: </p>

<hr>

<pre><code>map.get("hello");
map.get("HELLO");
map.get("Hello");
</code></pre>
