class TestList2 {
}
fun main() {
var mutableList: MutableList<String> = mutableListOf("turnOn", "turnOff")
mutableList.forEach() {
println("元素:" + it)
}
}
kotlin MutableList的遍历
最新推荐文章于 2024-08-08 16:18:05 发布