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