What is the simplest way to reverse this ArrayList?
ArrayList aList = new ArrayList<>(); //Add elements to ArrayList object aList.add(\
We can also do the same using java 8.
public static List reverseList(List list) { List reverse = new ArrayList<>(list.size()); list.stream() .collect(Collectors.toCollection(LinkedList::new)) .descendingIterator() .forEachRemaining(reverse::add); return reverse; }