[問題] 請問java有像asp的dictionary這樣的東西

看板java作者 (crazyM)時間12年前 (2013/03/06 15:53), 編輯推噓2(201)
留言3則, 2人參與, 最新討論串1/4 (看更多)
請問java有像asp的dictionary 這樣的 object嗎? 比如, 學生的各科成績存在object後, 可以用學生的id去取得各科成績. studentScore("123456").mathScore studentScore("123456").artScore studentScore("456789").mathScore studentScore("456789").artScore "123456", "456789" 是代表二個學生的id 我想應該是有的, 只是我不知道用什麼關鍵字去找相關的範例來參考. 請大大指點迷津~~ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.220.203.115

03/06 17:26, , 1F
HashMap, LinkedHashMap, IdentityHashMap, TreeMap
03/06 17:26, 1F

03/06 17:27, , 2F
一堆 class 任你挑
03/06 17:27, 2F

03/06 18:50, , 3F
這個問題簡單到把你文章幾個關鍵字拿去google就有了
03/06 18:50, 3F
文章代碼(AID): #1HDlNuhg (java)
討論串 (同標題文章)
文章代碼(AID): #1HDlNuhg (java)