📜  如何反转数组列表的顺序 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:34.860000             🧑  作者: Mango

代码示例1
ArrayList arrlist = new ArrayList();
//This is how to reverse arrlist's oringinal order.
Collections.reverse(arrlist);

//This is how to sort in a reverse order
 Collections.sort(arrlist, Collections.reverseOrder());