小编Luc*_*eck的帖子

Can i push into two remote repository in the same command line?

I want to push and syncronize my code in two different remote repository, to Gitlab and Github at the same command, is it possible?

git github gitlab

1
推荐指数
1
解决办法
37
查看次数

为什么我不能在此代码中以相反的顺序排序?

我试图以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)

还有其他方法可以对流进行反向排序吗?

java sorting java-8 java-stream

0
推荐指数
1
解决办法
74
查看次数

标签 统计

git ×1

github ×1

gitlab ×1

java ×1

java-8 ×1

java-stream ×1

sorting ×1