随笔分类 - Kotlin
摘要:1. 改进点/基础 //安全判空 val length = text?.length; //类型转换 if (object is Car) { var car = object as Ca } //操作符变化 & and | or ^ xor shr , off: Int = 0, len: Int
阅读全文
摘要:1. 容器 可变/不可变 List 只读list; MutableList; Set/MutableSet Map/MutableMap //示例 val numbers: MutableList = mutableListOf(1, 2, 3) val readOnlyView: List = n
阅读全文

浙公网安备 33010602011771号