I want to find 10 max values of a hashmap and i want others to be united into a single value called "Altri", in english it means others.
How can I do this?
I tried with Collections.max(collection)
after defining Collection collection=map.values()
but it doesn't work. When I debug it, I see it takes one value that it isn't the higher.
Can anyone help me? Thank's in advance