![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Kotlin简记
charmtjm
做一个简单的程序员!!
展开
-
学习Kotlin随笔简记(1)
1,Kotlin开发环境 Android stuidio 3.0及以上版本 2,环境配置 (1)在根项目的build.gradle 中配置 buildscript { ext.kotlin_version = '1.1.3-2' repositories { google() jcenter() mavenCentral...原创 2018-08-27 16:45:19 · 121 阅读 · 0 评论 -
学习Kotlin随笔简记(2)
1,数据类型转换 var a = 1 a.toChar()//转换成char a.toShort()//转换成short a.toInt()//转换成Int a.toLong()//转换成Long a.toDouble()//转换成Double a.toFloat()//转换成Float a.toString()//转换成String 2,when代替switch fun coun...原创 2018-08-29 17:51:53 · 174 阅读 · 0 评论