Back
I am currently doing this:
Set<String> setOfTopicAuthors = ....List<String> list = Arrays.asList( setOfTopicAuthors.toArray( new String[0] ) );
Set<String> setOfTopicAuthors = ....
List<String> list = Arrays.asList(
setOfTopicAuthors.toArray( new String[0] ) );
Can you beat this ?
Try:
List<String> list = new ArrayList<String>(listOfTopicAuthors);
30.9k questions
32.9k answers
500 comments
665 users