sort a List from highest to lowest

前端 未结 1 1485
余生分开走
余生分开走 2021-01-06 07:40
List>

I want to sort the List by the int from highest to lowest.

1条回答
  •  别那么骄傲
    2021-01-06 08:19

    java.util.Collections.sort(list, Comparator)

    You will need to write a Comparator>

    0 讨论(0)
提交回复
热议问题