使用Collections.sort方法对list排序的两种方法 使用 Collections.sort 方法对 list 排序有两种方法第一种是list中的对象实现Comparable接口,如下: java 2023-12-24 145 点赞 2 评论 219 浏览