I want to push and syncronize my code in two different remote repository, to Gitlab and Github at the same command, is it possible?
我试图以ArrayList<Person>相反的顺序对此进行排序,但这无法编译
List<Person> newList = arrayList.stream()
.sorted(Comparator.reverseOrder(Person::getAge)) //Error
.limit(3)
.collect(Collectors.toList());
newList.forEach(System.out::println);
Run Code Online (Sandbox Code Playgroud)
还有其他方法可以对流进行反向排序吗?