文件名称:从Java到Kotlin:从Java到Kotlin-Java到Kotlin的备忘单
文件大小:59KB
文件格式:ZIP
更新时间:2024-02-19 18:54:47
android kotlin java kotlin-language kotlin-android
从Java到Kotlin 从Java到Kotlin-Java到Kotlin的备忘单 打印到控制台 Java System . out . print( " Amit Shekhar " ); System . out . println( " Amit Shekhar " ); Kotlin print ( " Amit Shekhar " ) println ( " Amit Shekhar " ) 常量和变量 Java String name = " Amit Shekhar " ; final String name = " Amit Shekhar " ; Kotlin var name = " Amit Shekhar " val name = " Amit Shekhar " 分配空值 Java String otherName; otherName = null ; Kotlin var otherName : String? otherName = null 验证值是否为空 Java if (text != null ) { int length = tex
【文件预览】:
from-java-to-kotlin-master
----assets()
--------from_java_to_kotlin.png(47KB)
----LICENSE(11KB)
----others()
--------Developer.kt(53B)
--------JavaExample.java(30B)
--------KotlinExample.kt(25B)
--------Developer.java(1KB)
----README-ZH.md(10KB)
----README.md(15KB)
----README-ES.md(10KB)
----README-PT.md(10KB)