Organizational Research By

Surprising Reserch Topic

splitting a large string into SET items using java

Can someone help me with a version of the following expression that I can use for SET instead of ArrayList ?

ArrayList<String> items = new ArrayList<String>(Arrays.asList(comment.split(", ")));

P.S.: Comment is a large string of words split with a ",". Need to make an individual item of the word by splitting them from the comma sections.


asked Jun 22, 2015 in Core java by rahulgii
0 votes

Related Hot Questions

1 Answer

0 votes
answered Jun 22, 2015 by rahulgii