how do you print a bag datatype?
<pre><code>Bag&lt;String&gt; wordFrequencies = getWordFrequencies(text);
</code></pre>

<p>how do i see what this wordfrequencies bag contains..
 i ve used
org.apache.commons.collections15.Bag
org.apache.commons.collections15.bag.HashBag packages</p>
