集合和泛型 二

Set接口: Set接口存儲一組唯一,無序的對象 HashSet是Set接口常用的實現類 HashSet的創建及方法調用: 1 public class TestHashSet { 2 public static void main(String[] args){ 3 HashSet<String> hs=new HashSet<String>(); 4
相關文章
相關標籤/搜索