📜  kotlin variable possiblement null - Kotlin 代码示例

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

代码示例2
var message: String? = "My message can possibly be null !"
if (message != null) message.toUpperCase()