Kotlin- simple Java
I started to learn Kotlin. And ...
This is simple Java- said
It is used in Android- said
Reminds me... Combo Python and JavaSript. - Not need semicolon and val(var)
but It has strong type - This is good.
Example simple code:
fun main(args : Array<String>) { println("Hello, world!") val a: Int = 10000 val d: Double = 100.00 val f: Float = 100.00f val l: Long = 1000000004 val s: Short = 10 val b: Byte = 1 println("Your Int Value is "+a) println("Your Double Value is "+d) println("Your Float Value is "+f) println("Your Long Value is "+l) println("Your Short Value is "+s) println("Your Byte Value is "+b) }

Komentarze
Prześlij komentarz