Map 的特性即「鍵-值」(Key-Value)匹配,簡單的說,您可以將實作 Map 介面的容器物件當 ... .out.println(map.get(key2)); } }在範例中宣告 Map 型態與新增 Map 實例時, ...
確定! 回上一頁