我有一个Integer类型的List,例如:
[1, 1, 2, 3, 3, 3]
我想要一个方法来返回所有重复项,例如:
[1, 3]
做这个的最好方式是什么?
java collections
collections ×1
java ×1