compare方法的使用 实现正序和倒序

compare方法的使用 实现正序和倒序 好比:student(id,name,age) 咱们能够调用collections.sort();方法并重写compare() 方法。 需求:根据student的age进行排序。web a1 = ArraryList<Student> Collections.sort(a1, new Comparator<Student>() { @Overri
相关文章
相关标签/搜索