Java 教程
Java 實(shí)例
以下實(shí)例演示了如何使用 Enumeration 類的 hasMoreElements 和 nextElement 方法來遍歷輸出 HashTable 中的內(nèi)容:
以上代碼運(yùn)行輸出結(jié)果為:
Three Two One