數組/List集合判斷是否有交集--retainAll()

1.數組轉爲List集合 Arrays.asList(postCodeOld.split(",")) 2.List集合轉爲HashSet集合             HashSet<String> set = new HashSet<String>(Arrays.asList(postCodeOld.split(","))); 3.      HashSet<String> set
相關文章
相關標籤/搜索