This example will show how to reverse elements in an arraylist using java, guava and apache commons. In the setup we will create an arraylist using guava's List collection utility passing in various types of precipitation.
Straight up Java
This snippet will show how to reverse the order of elements in a list using Collections.reverse.
This snippet will demonstrate how to reverse an arraylist using guava's Lists.reverse.
This snippet will show how to reverse the order of a list using a loop using apache commons ReverseListIterator. The ReverseListIterator will wrap a list and iterate backwards through a list starting with the last and continuing to the first.