从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