How to find duplicates in an ArrayList<Object>?

后端 未结 4 1618
轮回少年
轮回少年 2020-12-25 08:54

This is a pretty common question, but I could not find this part:

Say I have this array list:

List arrayList = new List

        
4条回答
  •  自闭症患者
    2020-12-25 09:17

    And if you are not able to override "MyDataClass"'s hashCode and equals methods you could write a wrapper class that handles this.

提交回复
热议问题