• Top Posts

    Boolean in Kotlin


    Boolean in Kotlin
    boolean is very simple like java, we have only two values for boolean  true or false 

    Sample program: 



    /* arula.in */

    fun main(args : Array<String>)
    {

    var simpleBool : Boolean /* defining a variable */
    simpleBool = true /* Assinging a value to it */


    println("simpleBool value is :"+ "$simpleBool")


    }

    No comments

    Post Top Ad

    ad728

    Post Bottom Ad

    ad728