kotlin reverse list code example
Example: how to invert list kotlin
import java.util.Collections
fun main() {
val days: List<String> = listOf("Sunday", "Monday", "Friday")
Collections.reverse(days)
println(days) // [Friday, Monday, Sunday]
}