for (int i = list.size() - 1; i >= 0; i--) {
System.out.println(list.get(i));
}
如何倒序遍历一个ArrayList
最新推荐文章于 2024-07-05 15:57:21 发布
for (int i = list.size() - 1; i >= 0; i--) {
System.out.println(list.get(i));
}