while lopp in Kotlin
Example while program /* arula.in */ fun main (args : Array<String>) { var a : Int = 1 ; while (a <= 10 ){ println( ...
Example while program /* arula.in */ fun main (args : Array<String>) { var a : Int = 1 ; while (a <= 10 ){ println( ...
Example for program /* arula.in */ fun main (args : Array<String>) { var arrayval : Array<Int> = arrayOf( 1 , 5 , 6 , 3 , ...
switch in Kotlin: If you are familiar with other programming languages, then you might have heard of the term switch statement, which is bas...
Example Program: fun main (args : Array<String>) { var a : Int = 10 var b : Int = 2 var Max :Int if (a > b) ...
Arrays in Kotlin : arrays are collection of Homogenous data,Kotlin supports arrays of different data types Sample Program: /* arula.in *...
Strings in Kotlin (1. raw string 2. escaped string) : Strings are like character arrays like c# and Java. we have two types of strings in ...
Boolean in Kotlin boolean is very simple like java, we have only two values for boolean true or false Sample program: /* arula.in */ fun...
Kotlin represents Character using Char.char should be represented as single quote like 'c' Example Program : /* arula.in */ fun ...
Number Declaration in Kotline might be like java fun main (args : Array<String>) { /* basic data Types in Numbers */ val ...
Kotlin is Programing Language introduced by JetBrains, Kotlin is strongly statically typed programing language. Kotlin is Functional languag...
Kotlin is Programming language introduced by JetBrains, Kotlin is strongly statically typed language it Runs on JVM. Recently Google announ...