📜  kotlin 反向列表 - Kotlin 代码示例

📅  最后修改于: 2022-03-11 14:53:32.202000             🧑  作者: Mango

代码示例2
import java.util.Collections
 
fun main() {
    val days: List = listOf("Sunday", "Monday", "Friday")
 
    Collections.reverse(days)
 
    println(days)            // [Friday, Monday, Sunday]
}