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);
31k questions
32.8k answers
501 comments
693 users