• Top Posts

    Character Datatype in Kotlin

    Kotlin represents Character using Char.char should be represented as single quote like  'c'



    Example Program : 



    /* arula.in */

    fun main(args : Array<String>)
    {
    /* basic data Types in Characters */


    var simplechar : Char /* Defining Variable */
    simplechar = 'A' /* Assigning value */

    println("Char value is :"+ "$simplechar")


    }

    No comments

    Post Top Ad

    ad728

    Post Bottom Ad

    ad728