What is LinkedHashMap?

后端 未结 6 1235
迷失自我
迷失自我 2021-02-02 00:02

Ok so i am new to these HashMaps but have some idea about LinkedLists and HashMaps. It would be great if you could give me some simple explanation regarding LinkedHashMap and a

6条回答
  •  日久生厌
    2021-02-02 00:38

    This is called generics. k and v must be replaced with the actual type you want to store. To create a HashMap that maps integers on strings you would write:

     LinkedHashMap
    

提交回复
热议问题