Kotlin 101 – Basic Features[ENG/KOR]
Main characteristics – attractive language, including null safety, data classes, extension functions, and String templates. 1.Functions Let’s define a Function having two Int parameters with Int return type: 1 fun sum(a: Int, b: Int): Int {return a + b} 2. Defining Local Variables Assign-once (read-only) local variable: 1 val a: Int = 1val b = 1val c: Int c […]