android - reverse the order of an array
Kotlin
val reverseList: List<Int> = yourActualList.reversed();
Reference
You can do this in two steps:
ArrayList<Element> tempElements = new ArrayList<Element>(mElements);
Collections.reverse(tempElements);