[Kotlin] Primitive Types and String

fun main() {
    val a = 4
    val b: Byte = 127
    val c: Short = 123
    val d: Int = 7
    val e: Long = 123456789
    
    val f: Float = 3.73f
    val g: Double = 3.73
    
    val h: Char = 'c'
}

 

posted @ 2020-10-11 01:48  Zhentiw  阅读(70)  评论(0编辑  收藏  举报