Organizational Research By

Surprising Reserch Topic

how to convert a Set<String> to a List<String> in java collection


I am currently doing this:

Set<String> listOfTopicAuthors = ....

List<String> list = Arrays.asList( 
    listOfTopicAuthors.toArray( new String[0] ) );

Can you beat this ?

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



Related Hot Questions



Government Jobs Opening


...