Put contents of Set<Object> into Array
<p>I'm sure this is an easy one.  I just want to dump the set after the for loop in to the array of type <code>Role</code></p>

<p>This is what I got:</p>

<pre><code>Role[] hotPartRoles; 
Set &lt;Role&gt; roles = profile.getRoles(Section.MMC);

    for (Role role : roles  )
    {
        if( role.getName().contains("HOT_PART") &amp;&amp; !role.getName().contains("READ_ONLY") ) 
        {
        System.out.println("Role: " + role.getName());
        }
    }
</code></pre>

<p>I want to put the vaues that come back from the for loop into <code>hotPartRoles</code></p>

<p>thanks.......</p>
