用Collections.reverse(list)即可。如: Listlist = Arrays.asList(new String[] {"aa", "bb", "cc", "dd", "ee"}); Collections.reverse(list); for (String string : list) { System.out.println(string); }
本文共 202 字,大约阅读时间需要 1 分钟。
用Collections.reverse(list)即可。如: Listlist = Arrays.asList(new String[] {"aa", "bb", "cc", "dd", "ee"}); Collections.reverse(list); for (String string : list) { System.out.println(string); }
转载地址:http://gskio.baihongyu.com/