Check out example codes for "how to reverse a list in java". It will help you in understanding the concepts better.
Code Example 1
//import java.util.Collections;
//create and add items to list
Collectons.reverse(list);
Code Example 2
List<String> stringList = Arrays.asList("A", "B", "C");
Collections.reverse(stringList);
assertThat(stringList).containsExactly("C", "B", "A");
Learn ReactJs, React Native from akashmittal.com