views:

128

answers:

2

I am currently doing this:

Set<String> listOfTopicAuthors = ....

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

Can you beat this ?

+11  A: 
List<String> list = new ArrayList<String>(listOfTopicAuthors);
Schildmeijer
Damn it Roger - You're beating me now! ... Despite my answer being more concise by 3 characters.
Adamski
what makes you think Jacques René Mesrine would like to change the name of his identifiers :P
Schildmeijer
+5  A: 
List<String> l = new ArrayList<String>(listOfTopicAuthors);
Adamski