Java或Guava是否有能够返回列表中最常见元素的东西?
List<BigDecimal> listOfNumbers= new ArrayList<BigDecimal>();
[1,3,4,3,4,3,2,3,3,3,3,3]
返回3
java guava
guava ×1
java ×1