本帖最后由 xiaochen33520 于 2014-3-26 13:19 编辑
Comparator<Student> comp = Collections.reverseOrder();
comp = Collections.reverseOrder(new ComparatorByMath());
Set<Student> set = StudentInfoTool.getStudents(comp);
File file = new File("stuinfo.txt");
StudentInfoTool.write2File(set, file);
求解,红色字体的这两句代码有什么用? |
|