HashMap and int as key

前端 未结 11 1993
说谎
说谎 2020-11-28 23:32

I am trying to build a HashMap which will have integer as keys and objects as values.

My syntax is:

HashMap myMap = new HashMap&         


        
11条回答
  •  有刺的猬
    2020-11-28 23:58

    You may try to use Trove http://trove.starlight-systems.com/
    TIntObjectHashMap is probably what you are looking for.

提交回复
热议问题