Array 转 Set

Array 转 Set:

Set<String> oldCandidateNames = new HashSet<String>(Arrays.asList(candidateNames));

 

posted @ 2018-09-30 14:11  xiluhua  阅读(2432)  评论(0编辑  收藏  举报