Strings as key in Hashmap : <p>I'm newbie with Java
Is it possible to convert a String, or a String[] as the keys of an Hashmap?
I mean:</p>

<pre><code>String keysToConvert = "key1,key2,key3";
</code></pre>

<p>into</p>

<pre><code>HashMap&lt;String, Double&gt; hashmap = new HashMap&lt;String, Double&gt;();
[apply in some way the keys of the string]
hashmap.get("key2");
</code></pre>

<p>I know that <code>hashmap.get("key2");</code>has no value in this moment. I just would know if there is a way to load the keys in an HashMap.</p>
