title: splitting a large string into SET items
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3064423/java-easily-convert-array-to-set">Java - easily convert array to set</a>  </p>
  </blockquote>
  
  
  
  <p>Can someone help me with a version of the following expression that I can use for SET instead of ArrayList ? </p>
  
  <pre><code>ArrayList&lt;String&gt; items = new ArrayList&lt;String&gt;(Arrays.asList(comment.split(", ")));
  </code></pre>
  
  <p>P.S.: Comment is a large string of words split  with a <code>","</code>. Need to make an individual item of the word by splitting them from the comma sections. </p>