我想知道是否有任何方法可以像在Java中一样在Kotlin中定义多个变量,而在世界上几乎所有其他现有语言.
像在Java中:
String x = "Hello World!", y = null, z;
variables kotlin
kotlin ×1
variables ×1