我正在尝试创建具有姓名和特征的人员列表。我怎么能这样做?
class Player(val name: String, val nachname: String, val nr: Int)
// And I'm trying to do this:
fun main() {
val team2 = mutableListOf<Player>()
team2.add("Max", "Mustermann", 12)
println("${team2.size}")
}