Entry
System.out.println("Id:"+e.getKey()+" Description:"+e.getValue());
}
//使用for遍历
System.out.println("--------使用for遍历------");
for(Entry
System.out.println("Id:"+e.getKey()+" Description:"+e.getValue());
}
}
//原型:public interface Set
//实现类: AbstractSet, EnumSet, HashSet, LinkedHashSet, TreeSet、 JobStateReasons,CopyOnWriteArraySet
public void setTest(){
Set
set.add("No1");
set.add("No2");
set.add("No3");
}
}
摘自 twoicewoo的专栏