how to add Set<String> value to the List in the for loop?
<p>I would like to iterate the Value of the <code>accountset</code> <code>List&lt;AccountTO&gt;</code> and set to <code>AccountID</code>.</p>

<p>Actually in the <code>accountset</code> I am getting the values : <code>100,101,102</code> I would like to add the values to the <code>List&lt;AccounTO&gt;</code> and set them to <code>AccountID</code> and pass it to the Service call. Is there any that I can go with or else any other procedure.</p>

<pre><code>for(String s :group.getAccounts().keySet())
{
    System.out.println("===="+s.lastIndexOf("-"));
    System.out.println("sub"+s.substring(0,s.lastIndexOf("-")));
    accountSet.add(s.substring(0, s.lastIndexOf("-")));
}
</code></pre>
