comparing one element in one arraylist with all the elements in another arraylist

前端 未结 0 638
终归单人心
终归单人心 2020-11-21 17:39

I want to count how often an element from ArrayList "list1" occurs in the other ArrayList "list2".

I want this output:

A 2
B 0
C 1
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题