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

Related Hot Questions

Government Jobs Opening