how to compare a set of characters with a map which keys are characters?
<p>If i have a set of characters which is called characters and contains the following Characters (doesn't have to be SortedSet) </p>

<pre><code>'c''h''a''r''a''c''t''e''r'
</code></pre>

<p>and i have a map which has sets of charcters as its keys and strings as values for example</p>

<pre><code>map&lt;Set&lt;Character&gt;&gt;,&lt;String&gt; aMap = new HashMap&lt;Set&lt;Character&gt;&gt;,&lt;String&gt;();

aMap.put('a''h''t', "hat");
aMap.put('o''g''d', "dog");
aMap.put('c''r''a''t''e', "react");
</code></pre>

<p>What javdoc method would i use to compare the characters since they are both in a Set, then to iterate through the keySet using a for loop to compare the characters to find only the keys that are made from charcters that are contained within the first. So in above example the second entry ('o''g''d', "dog") would be ommitted. </p>

<p>thanks</p>

<p>andy</p>
