Kotlin学习笔记三、字符串String及操作
1、像Java那样,字符串String转换成其他数据类型:var int:String = "1"; var long = "20"; var float = "22.23"; var double = "32.15";var boolean = "true";var chars = "asdf"var integer:Int = int.toInt(); var longIn