Organizational Research By

Surprising Reserch Topic

easily convert array to set in java


I'd like to convert an array to a set in Java. There are some obvious ways of doing this (i.e. with a loop) but I would like something a bit neater, something like:

java.util.Arrays.asList(Object[] a);

Any ideas?

 


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



Related Hot Questions

4 Answers

0 votes
 
Best answer
NULL
answered Jun 22, 2015 by rahulgii
selected Jun 23, 2015 by rajesh
0 votes
NULL
answered Jun 22, 2015 by rahulgii
0 votes
NULL
answered Jun 22, 2015 by rahulgii
0 votes
NULL
answered Jun 22, 2015 by rahulgii

...