用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);
}

相关文章:

  • 2022-12-23
  • 2021-12-06
  • 2022-01-13
  • 2021-05-28
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2021-06-29
猜你喜欢
  • 2022-02-10
  • 2022-12-23
  • 2021-10-24
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2022-12-23
相关资源
相似解决方案