Java 教程
Java 實(shí)例
以下實(shí)例演示了如何使用 Collection 類的 iterator() 方法來(lái)遍歷集合:
以上代碼運(yùn)行輸出結(jié)果為:
1st 2nd 3rd