how to get char input in kotlin
snippet in kotlin

kotlin read input as int

user5730

readLine()!!.toInt()

how to get char input in kotlin

user7212

import java.util.Scanner

fun main(args: Array<String>) {
    val scanner = Scanner(System.`in`)
    val chr = scanner.next().single()
}