Most concise way to convert a Set to a List

后端 未结 6 1368
失恋的感觉
失恋的感觉 2020-12-07 12:00

For example, I am currently doing this:

Set setOfTopicAuthors = ....

List list = Arrays.asList( 
    setOfTopicAuthors.toArray(          


        
6条回答
提交回复
热议问题