Filter map to one row per multiple of ten,based on difference in decreasing order in java
问题 I have a method through which I can filter rows per multiple of ten i.e. I can filter rows which are nearest to multiple of tens such as 10,20,30 etc in ascending order.Now I want to do the same process in decreasing order. Please refer the following link- Filter array to one row per multiple of ten, based on difference? In the above mentioned link,the same process is done in ascending order,I want to do this in decreasing order and store the values in map.But I'm not able to do. I'm using