摘要: 自定义排序我们需要实现 Comparator 的 compare 方法 函数式接口可以使用 Lambda 表达式来创建实例 @FunctionalInterface public interface Comparator<T> { int compare(T o1, T o2); } 对于一个数组来 阅读全文
posted @ 2024-05-13 14:25 Shie1d 阅读(131) 评论(0) 推荐(0)