发布网友 发布时间:2022-04-22 22:52
共1个回答
热心网友 时间:2022-06-02 09:42
用Collections.reverse(list)即可。如:
List<String> list = Arrays.asList(new String[] {"aa", "bb", "cc", "dd", "ee"});
Collections.reverse(list);
for (String string : list) {
System.out.println(string);
}