怎麼做的Hashmap我有一個像如何使用散列表存儲值的列表?使用以下格式
{"tname":"Learning Ratio and Proportion Concepts and practice assessment","gname":"Sixth grade"},
{"tname":"Number System","gname":"Sixth grade"},
{"tname":"quations and expression","gname":"Seventh grade"},{"tname":"Geometry","gname":"Seventh grade"}
我希望保存爲
list<String>={"Sixth grade","Seventh grade"}
list(list<String>)={{"Learning Ratio and Proportion Concepts and practice assessment","Number System"},{"quations and expression","Geometry"}}
任何一個可以幫助我感謝的價值列表...
鍵值只能在地圖中出現*一次*。你不止一次使用過tname和gname。你想要3張地圖還是1張地圖? –
只有一張地圖... – sureshkumar
然後tname和gname只能在地圖中出現一次。 –