Collections.reverse(list);
这句话 是不是反转字符串的意思啊
评论 (1)
- 热门
- 最新
- 最旧
您必须 登录 才能发表评论
Gellert Varga
14 二月 2022, 10:03解决方案
Yes, this method reverses the order of the passed list.
You can find out more about it here:
https://docs.oracle.com/javase/8/docs/api/java/util/Collections.html#reverse-java.util.List-
But if your program doesn't work the way you want it to, please always use the "attach my solution" button at the bottom left. In that case, we can help you better.
+2