kotlin

list排序:personList.sortWith(compareBy({ it.age }, { it.name }))

四捨五入到整數:String.format("%.0f", 3.14159).toInt()


留言