ArrayList as key in HashMap

前端 未结 9 1849
Happy的楠姐
Happy的楠姐 2020-11-29 09:17

Would it be possible to add an ArrayList as the key of HashMap. I would like to keep the frequency count of bigrams. The bigram is the key and the

9条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-29 09:54

    Sure it possible. I suppose the issue in your put. Try obtain key for bigram, increment it, remove entry with this bigram and insert updated value

提交回复
热议问题